Led-0 linux driver


#1

Hi,

I try to understande how to add an out of kernel driver to legato, I am able to compile and generate ko file and then intall it on the target platform. One of the program I tried with is the led-0. Does any one have an idea how to test this after adding it ? Thank you.


#2

The LedService app uses it. You can see the file that it uses to manipulate the LED here: https://github.com/mangOH/mangOH/blob/master/apps/LedService/ledServiceComponent/ledService.c#L15

Basically, you just have to write 1 or 0 to that file.