Fishwaldo / sophgo-sg200x-debian

Debian Image for SG200x based boards such as Milk Duo256/DuoS and Sipeed LicheeRVNano
98 stars 24 forks source link

Button and LED #35

Open MatejKovacic opened 1 month ago

MatejKovacic commented 1 month ago

I have LicheeRV Nano B and have installed Debian.

I managed to establish network (internet) connection. I can record a sound from microphone.

But how can I control user button and user LED?

MatejKovacic commented 1 month ago

I have found how to use button (with command echo 0 | evtest), however user LED seems not to be present in this build.

In official build you can use /sys/class/leds/led-user/ (and then there are several files, for instance trigger and brighthess to control LED).

But this build has only heartbeat, mmc0 and mmc1:

sudo ls /sys/class/leds/
:heartbeat  mmc0::  mmc1::