P141 RGB Strip Plugin

Moderators: BertB, rtenklooster, Voyager, Stuntteam, Martinus

Message
Author
TD-er
Normal user
Posts: 940
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P141 RGB Strip Plugin

#41 Post by TD-er » 12 Aug 2018, 12:31

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?

sledge
Normal user
Posts: 16
Joined: 20 Jan 2017, 20:42

Re: P141 RGB Strip Plugin

#42 Post by sledge » 12 Aug 2018, 18:16

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!

sledge
Normal user
Posts: 16
Joined: 20 Jan 2017, 20:42

Re: P141 RGB Strip Plugin

#43 Post by sledge » 15 Aug 2018, 16:10

Would it be possible to add a command to the plugin just to set a value for white? Something like this maybe:

Code: Select all

			if (command == F("w1"))	{
				analogWrite(v_p141_pins[3], v_p141_pin_inverse ? (PWMRANGE - event->Par1)  : event->Par1);
			}
I´m not familiar with C so i don´t know how to add another command.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest