Hi guys, it’s first time I try to write drivers for Raspberry.
I’ve seen “Basic LED Driver for Raspberry Pi” tutorial and I’ve tryed to modify it for my use (I need to get output time-defined monostable pulse).
Actually, with command echo 40 > /sys/class/LedBlink/LedBlink/period I got a 40 second signal output.
What I can’t understand is: why I got “period” file name?
Where can I set file name?
Searching kernel examples on the web I’ve found similar behaviour module where with command:
cat /sys/class/hcsr04/value
I got as output of driver a string/numeric value.
Is there a way to get an output from LedBlink driver from a different named file instead “period”?
Thanks.