sipeed / LicheeRV-Nano-Build

LicheeRV-Nano-Build
103 stars 39 forks source link

LED diode #54

Closed MatejKovacic closed 1 month ago

MatejKovacic commented 1 month ago

How can I control user LED diode?

Neutree commented 1 month ago
echo none > /sys/class/leds/led-user/trigger
echo 1 > /sys/class/leds/led-user/brightness
echo 0 > /sys/class/leds/led-user/brightness

and you can find control code in MaixPy also at https://github.com/sipeed/MaixCDK/blob/main/components/peripheral/port/maixcam/maix_gpio.cpp

MatejKovacic commented 1 month ago

OK, unfortunately I do not see it.

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

But I am using https://github.com/Fishwaldo/sophgo-sg200x-debian/, it seems it is not implemented there. How can I do it by myself?

MatejKovacic commented 1 month ago

Also, how can I access GPIO's (read and write), do you have any example? Because it could be possible to solder my own LED to GPIO, or to use pins for sensors...

MatejKovacic commented 1 month ago

Also, is it possible to connect 0.96" OLED Display Module? The one that uses SCL and SDA connectors, for instance this one: https://vi.aliexpress.com/item/1005006365881525.html