Include execution time for PWM
Would it be possible to indicate besides the PWM for a pin also the total duration of the PWM? For example the command echo "1=0.5=1.0" > /dev/pi-blaster might indicate that the PWM of 50% on pin 1 should be executed only for one second. This could be added without breaking existing applications since the last "=1.0" would be optional. Thanks for the great work, Francesco
Thanks for the suggestion. I would like to keep pi-blaster as simple as possible and I think this can easily be done in any higher-level language.
Do you control pi-blaster directly from the command line? Or do you use another language (python, bash, etc)?
thomas
I think that feature would be awesome, too. I control pi-blaster from nodejs and because of nodejs's asynchronous structure, there is no proper delay function(if you don't count locking the thread in a for loop.) Also, hardware works synchronously most of the time, so we need such a bridge between the world..