Is there a possibility to let a led connectet to a PCA9685 blink with out using "TimerSet"?
The Pulse command ist almost the right direction but there is no repeat option. Is it non-blocking anyhow?
Edit: Similar to "LongPulse_mS"
Non blocking blinking LED with PCA9685 possible?
Moderators: grovkillen, Stuntteam, TD-er
Re: Non blocking blinking LED with PCA9685 possible?
AFAIK, the PcfLongpulse_MS command also shouldn't be blocking (where the Longpulse, and most likely PcfLongpulse too, are blocking), so maybe that helps in improving the performance?
Don't think the PcfLongpulse_MS command got that 'repeat' feature (though I didn't look at the source, the docs don't have that parameter), so a LoopTimerSet command would be the best starting point.
Don't think the PcfLongpulse_MS command got that 'repeat' feature (though I didn't look at the source, the docs don't have that parameter), so a LoopTimerSet command would be the best starting point.
/Ton (PayPal.me)
Re: Non blocking blinking LED with PCA9685 possible?
Hm, maybe the pcf* commands don't work with the PCA9685
/Ton (PayPal.me)
Re: Non blocking blinking LED with PCA9685 possible?
The frequency for the PCA9685 can't be set low enough to a usable flashing frequency (23 Hz is a really fast on/off) or else the PcaPwm command could have worked here
/Ton (PayPal.me)
Re: Non blocking blinking LED with PCA9685 possible?
I got confused by that too
Re: Non blocking blinking LED with PCA9685 possible?
I use now the MCP23017 for relay and led output and the PCA9685 for input only.
To let the LEDs blink i use:
Which is undocumented but works
Log output gives a warning (that's why it is probably undocumented?):
To let the LEDs blink i use:
Code: Select all
MCPlongpulse_ms,1,0,1000,1000,5
Log output gives a warning (that's why it is probably undocumented?):
1602678: HTTP: MCPlongpulse_ms,1,0,1000,1000,5
1602683: Too many arguments: cmd=MCPlongpulse_ms Arg1=1 Arg2=0 (fixed) Arg3=1000,1000,5 ExtraArg4=1000 ExtraArg5=5 lineLength=31
1602683: Line: _MCPlongpulse_ms,1,0,1000,1000,5_
1602683: Command executed, but may fail. See: https://github.com/letscontrolit/ESPEasy/issues/2724
1602686: MCP : port 1. Pulse H:1000 L:1000 #:5 ms
Who is online
Users browsing this forum: No registered users and 1 guest