Basic LED Driver for Raspberry Pi

Sysprogs forums Forums Other tools & products Basic LED Driver for Raspberry Pi

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6133
    El Berto
    Participant

    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.

     

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.