pi-blaster icon indicating copy to clipboard operation
pi-blaster copied to clipboard

Include execution time for PWM

Open fcapano opened this issue 12 years ago • 2 comments

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

fcapano avatar Jul 02 '13 10:07 fcapano

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

sarfata avatar Jul 02 '13 17:07 sarfata

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..

muvaf avatar Mar 24 '16 15:03 muvaf