P141 RGB Strip Plugin
Moderators: grovkillen, Stuntteam, TD-er
Re: P141 RGB Strip Plugin
I don't see anything related to SoftwareSerial in the code of P141.
But it is including Fastled.h, so maybe that one is trying to assign some interrupt triggers to some pins.
This may cause issues. I guess.
These function call SoftwareSerial instead of ESPEasySoftwareSerial: https://github.com/letscontrolit/ESPEas ... wareSerial
Have you added other files, other than the P141 file?
But it is including Fastled.h, so maybe that one is trying to assign some interrupt triggers to some pins.
This may cause issues. I guess.
These function call SoftwareSerial instead of ESPEasySoftwareSerial: https://github.com/letscontrolit/ESPEas ... wareSerial
Have you added other files, other than the P141 file?
Re: P141 RGB Strip Plugin
I only added p141 and the fastled lib. It works if i comment out sws_isr_0() like mentioned by johny Mielony. BUT now i am not able to send a pwm command to a specified pin. My problem is that i am using a rgb-W power led and am not able to set white to a value. Only RGB through p141 is working. Is there a way to change white whithin the plugin? I set the led strip type to rgbw and mapped white1 to pin5 but i can´t see a command to switch white on.
BTW the plugin is awesome!
BTW the plugin is awesome!
Re: P141 RGB Strip Plugin
Would it be possible to add a command to the plugin just to set a value for white? Something like this maybe:
I´m not familiar with C so i don´t know how to add another command.
Code: Select all
if (command == F("w1")) {
analogWrite(v_p141_pins[3], v_p141_pin_inverse ? (PWMRANGE - event->Par1) : event->Par1);
}
Re: P141 RGB Strip Plugin
How funny, the code i posted above is working Now i can control the white channel with mqtt command w1,255
I also added this line to void Fp141_CommandOff(){ function to ensure everything is off after command receives.
I know this is not intended by the plugin author but until the white channel is added it is useful for me and maybe an other.
I also added this line to void Fp141_CommandOff(){ function to ensure everything is off after command receives.
Code: Select all
analogWrite(v_p141_pins[3], v_p141_pin_inverse ? (PWMRANGE - 0) : 0);
Re: P141 RGB Strip Plugin
hi,
first of all, thx to the author for coding this plugin... I think it would be huge improvment for the whole project.
But I was not able to compile it successfully... got the following errors (compiled with platform IO):
Archiving .pioenvs/dev_ESP8266_1024/libFrameworkArduino.a
Indexing .pioenvs/dev_ESP8266_1024/libFrameworkArduino.a
Linking .pioenvs/dev_ESP8266_1024/firmware.elf
.pioenvs/dev_ESP8266_1024/lib52c/SoftwareSerial/SoftwareSerial.cpp.o: In function `sws_isr_0()':
SoftwareSerial.cpp:(.iram.text+0xf8): multiple definition of `sws_isr_0()'
.pioenvs/dev_ESP8266_1024/libc24/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xd4): first defined here
.pioenvs/dev_ESP8266_1024/lib52c/SoftwareSerial/SoftwareSerial.cpp.o: In function `sws_isr_1()':
SoftwareSerial.cpp:(.iram.text+0x110): multiple definition of `sws_isr_1()'
.pioenvs/dev_ESP8266_1024/libc24/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xec): first defined here
.pioenvs/dev_ESP8266_1024/lib52c/SoftwareSerial/SoftwareSerial.cpp.o: In function `sws_isr_2()':
SoftwareSerial.cpp:(.iram.text+0x128): multiple definition of `sws_isr_2()'
.pioenvs/dev_ESP8266_1024/libc24/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0x104): first defined here
collect2: error: ld returned 1 exit status
*** [.pioenvs/dev_ESP8266_1024/firmware.elf] Error 1
seems like there is still this problem with "sws_isr_0()"... but how to solve it?
when could we see this plugin in the "official" dev branch?
any help would be great!
thx
first of all, thx to the author for coding this plugin... I think it would be huge improvment for the whole project.
But I was not able to compile it successfully... got the following errors (compiled with platform IO):
Archiving .pioenvs/dev_ESP8266_1024/libFrameworkArduino.a
Indexing .pioenvs/dev_ESP8266_1024/libFrameworkArduino.a
Linking .pioenvs/dev_ESP8266_1024/firmware.elf
.pioenvs/dev_ESP8266_1024/lib52c/SoftwareSerial/SoftwareSerial.cpp.o: In function `sws_isr_0()':
SoftwareSerial.cpp:(.iram.text+0xf8): multiple definition of `sws_isr_0()'
.pioenvs/dev_ESP8266_1024/libc24/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xd4): first defined here
.pioenvs/dev_ESP8266_1024/lib52c/SoftwareSerial/SoftwareSerial.cpp.o: In function `sws_isr_1()':
SoftwareSerial.cpp:(.iram.text+0x110): multiple definition of `sws_isr_1()'
.pioenvs/dev_ESP8266_1024/libc24/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xec): first defined here
.pioenvs/dev_ESP8266_1024/lib52c/SoftwareSerial/SoftwareSerial.cpp.o: In function `sws_isr_2()':
SoftwareSerial.cpp:(.iram.text+0x128): multiple definition of `sws_isr_2()'
.pioenvs/dev_ESP8266_1024/libc24/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0x104): first defined here
collect2: error: ld returned 1 exit status
*** [.pioenvs/dev_ESP8266_1024/firmware.elf] Error 1
seems like there is still this problem with "sws_isr_0()"... but how to solve it?
when could we see this plugin in the "official" dev branch?
any help would be great!
thx
Re: P141 RGB Strip Plugin
.. using arduino IDE everyhting works fine
Re: P141 RGB Strip Plugin
With the sws_isr commented in ESPeasySoftwareSerial.cpp I got it compiled and running. It is a very nice full featured RGB control. One thing that I am missing is the option to select a color and fade it in during a selectable time. This option is available in the lights plugin (https://github.com/ddtlabs/ESPEasy-Plugin-Lights), this one has not seen an update in the last 2 years so I am not sure if it would compile well with the latest version.Johny Mielony wrote: ↑24 Jul 2018, 11:16I can get rid of those errors just by commenting out any occurrence of sws_isr in ESPeasySoftwareSerial.cpp, but that's just workaround, not a solution.Code: Select all
.pioenvs\normal_ESP8266_1024\libb3e\SoftwareSerial\SoftwareSerial.cpp.o: In function `sws_isr_0()': SoftwareSerial.cpp:(.iram.text+0xf8): multiple definition of `sws_isr_0()' .pioenvs\normal_ESP8266_1024\libb96\ESPEasySoftwareSerial\ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xd4): first defined here .pioenvs\normal_ESP8266_1024\libb3e\SoftwareSerial\SoftwareSerial.cpp.o: In function `sws_isr_1()': SoftwareSerial.cpp:(.iram.text+0x110): multiple definition of `sws_isr_1()' .pioenvs\normal_ESP8266_1024\libb96\ESPEasySoftwareSerial\ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xec): first defined here .pioenvs\normal_ESP8266_1024\libb3e\SoftwareSerial\SoftwareSerial.cpp.o: In function `sws_isr_2()': SoftwareSerial.cpp:(.iram.text+0x128): multiple definition of `sws_isr_2()' .pioenvs\normal_ESP8266_1024\libb96\ESPEasySoftwareSerial\ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0x104): first defined here
Re: P141 RGB Strip Plugin
Hi,
Can anyone share a .bin file with this RGB plugin for Wimos D1 mini?
Can anyone share a .bin file with this RGB plugin for Wimos D1 mini?
Last edited by Dines on 11 Oct 2018, 00:19, edited 1 time in total.
- budman1758
- Normal user
- Posts: 301
- Joined: 15 Apr 2017, 05:13
- Location: Riverside CA USA
Re: P141 RGB Strip Plugin
+ 1 for ^. Standard 4 meg here.
"The glass is twice as big as it needs to be".
Re: P141 RGB Strip Plugin
I added an issue for it on Github: https://github.com/letscontrolit/ESPEasy/issues/1889
Re: P141 RGB Strip Plugin
Dear all,
Is this project stil a live??
Is ther peperhaps a option this controller works with Domoticz?
i am searching for a H081 controller that i can use in Domoticz..
Or is this the wrong project?
Is this project stil a live??
Is ther peperhaps a option this controller works with Domoticz?
i am searching for a H081 controller that i can use in Domoticz..
Or is this the wrong project?
Re: P141 RGB Strip Plugin
Is it an option for you to use an MQTT server like mosquitto? It's pretty simple and you can use also other firmwares like tasmota or espurna as well.
I don't use and know Domoticz, but I suppose it has MQTT support as well.
Re: P141 RGB Strip Plugin
i have a mqtt server running in Domoticz..
I flashed a esp with espeasy
And i do have a esp with Thasmota.
Only my knowledge with mqtt is very low
I flashed a esp with espeasy
And i do have a esp with Thasmota.
Only my knowledge with mqtt is very low
Re: P141 RGB Strip Plugin
I had also some doubts but love it now. It‘s pretty easy actually. The concept is just different.
Give it a try you won’t regret it.
Re: P141 RGB Strip Plugin
What do i wrong with compiling _P141?
When i compile ESPEasy_mega-20181017 with Platformio no problem at all.
But when I add _P141 to the map source/src and FastLED-3.1.8 to to map source/lib
Then i add #include "<FastLED.h>" to ESPEasy.ino is see this:
F:/ESPEasy Projects/ESPEasy_mega-20181017_P141/Source/scr/ESPEASY.ino:8923: fatal error scr\<FastLED.h>: Invalid argument
When i changed it in #include <FastLED.h> to ESPEasy.ino is see this:
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\dev_ESP8266_1024\firmware.elf] Error 1
When i changed it in #include "FastLED.h" to ESPEasy.ino is see this:
collect2.exe error: ld returned 1 exit status
*** [.pioenvs\dev_ESP8266_1024\firmware.elf] Error 1
If I follow the text of the developer, he used another directory structure.
Installation :
- Add the FastLED library in the 'src/lib/' folder from https://github.com/FastLED/FastLED/tree/3.1.8
- Move this file to the 'src/' folder
- Add "#include <FastLED.h>" at the start of src/lib/ESPEasy.ino file else compiler fails
Please, can anyone tell me what i doing wrong?
When i compile ESPEasy_mega-20181017 with Platformio no problem at all.
But when I add _P141 to the map source/src and FastLED-3.1.8 to to map source/lib
Then i add #include "<FastLED.h>" to ESPEasy.ino is see this:
F:/ESPEasy Projects/ESPEasy_mega-20181017_P141/Source/scr/ESPEASY.ino:8923: fatal error scr\<FastLED.h>: Invalid argument
When i changed it in #include <FastLED.h> to ESPEasy.ino is see this:
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\dev_ESP8266_1024\firmware.elf] Error 1
When i changed it in #include "FastLED.h" to ESPEasy.ino is see this:
collect2.exe error: ld returned 1 exit status
*** [.pioenvs\dev_ESP8266_1024\firmware.elf] Error 1
If I follow the text of the developer, he used another directory structure.
Installation :
- Add the FastLED library in the 'src/lib/' folder from https://github.com/FastLED/FastLED/tree/3.1.8
- Move this file to the 'src/' folder
- Add "#include <FastLED.h>" at the start of src/lib/ESPEasy.ino file else compiler fails
Please, can anyone tell me what i doing wrong?
Re: P141 RGB Strip Plugin
For PlatformIO there is a separate lib directory at the same level as the src dir.
See directory structure here: https://github.com/letscontrolit/ESPEasy
See directory structure here: https://github.com/letscontrolit/ESPEasy
Re: P141 RGB Strip Plugin
Hello TD-er,TD-er wrote: ↑22 Oct 2018, 10:21 For PlatformIO there is a separate lib directory at the same level as the src dir.
See directory structure here: https://github.com/letscontrolit/ESPEasy
I'm not a programmer, only a simple user who was interrested in the possibilities of the _P141 Plugin together with a Huacanxing H801
This is the structure of testing the plugins, I started on another computer with Platformio as descriped in de Wiki. I used ESPEasy_mega-20181023 as file.
First i compiled ESPEasy_mega-20181023, no problem with the normal-test-dev_ESP8266 versions.
Then i add _P141, with the library FastLED-3.1.8 and #include <FastLED.h> to ESPEasy_mega-20181023.
Problems:
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\normal_ESP8266_1024\firmware.elf] Error 1
I started again this time with _P142 and ESPEasy_mega-20181023.
Problems:
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:88:107: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:88:107: error: too many arguments to function 'void addPinSelect(boolean, String, int)'
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:90:107: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:90:107: error: too many arguments to function 'void addPinSelect(boolean, String, int)'
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:92:107: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:92:107: error: too many arguments to function 'void addPinSelect(boolean, String, int)'
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:94:107: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
F:/ESPEasy Projects/ESPEasy_mega-20181023_P142/Source_P142/src/_P142_RGB-Strip.ino:94:107: error: too many arguments to function 'void addPinSelect(boolean, String, int)'
The third try, _P150 and ESPEasy_mega-20181023.
Problems:
Environment dev_ESP8266_1024 [ERROR]
Environment dev_ESP8266_4096 [ERROR]
These are successfull:
Environment normal_ESP8266_1024 [SUCCESS]
Environment normal_ESP8266_4096 [SUCCESS]
Environment test_ESP8266_1024 [SUCCESS]
Environment test_ESP8266_4096 [SUCCESS]
Then i add _P141, with #include <FastLED.h> to ESPEasy_mega-20181023 but without the library.
Problems:
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\normal_ESP8266_1024\firmware.elf] Error 1 My question to you, can you maybe try to compile the _P141 Plugin to see what the results are in your environment?
Regards, Herman
Re: P141 RGB Strip Plugin
Please provide somebody a .bin file
Re: P141 RGB Strip Plugin
I've such a binary with P142 RGB-Strip, but do not know what is the difference with P141. 4MB version.
download/file.php?id=3594
Re: P141 RGB Strip Plugin
Hi,
added two bin files with P141. One for 1MB and the other for 4MB flash.
Hope that helps.
BTW. I don't use ESPEasy for LED strips anymore although I love its flexibility. Tasmota has a much better implementation for this IMHO. This plugin flickers a lot in low dimming settings and it has no fading.
added two bin files with P141. One for 1MB and the other for 4MB flash.
Hope that helps.
BTW. I don't use ESPEasy for LED strips anymore although I love its flexibility. Tasmota has a much better implementation for this IMHO. This plugin flickers a lot in low dimming settings and it has no fading.
- Attachments
-
- firmwares.zip
- (928.92 KiB) Downloaded 421 times
Re: P141 RGB Strip Plugin
Thanks.dolittle wrote: ↑22 Feb 2019, 17:13 Hi,
added two bin files with P141. One for 1MB and the other for 4MB flash.
Hope that helps.
BTW. I don't use ESPEasy for LED strips anymore although I love its flexibility. Tasmota has a much better implementation for this IMHO. This plugin flickers a lot in low dimming settings and it has no fading.
Re: P141 RGB Strip Plugin
ws2811, 12, 12B & 52: "NOT yet implemented". Bummer.
Any ETA on support for those devices?
Thanks,
Brian H.
Any ETA on support for those devices?
Thanks,
Brian H.
Re: P141 RGB Strip Plugin
Hi,
for me ESPEasy was not the right choice for ws2812 strips. I ended up using WLED for that after some research. It has a web interface and supports a variety of protocols.
I‘ve connected it via MQTT to my openHAB. Works like a charm.
Apart from the technical aspect a lot of effects are supported out of the box. It may be worth having a look.
Who is online
Users browsing this forum: Ahrefs [Bot] and 22 guests