/sys/class/leds/<led>/device_name
Specifies the network device name to monitor.
/sys/class/leds/<led>/interval
Specifies the duration of the LED blink in milliseconds. Defaults to 50 ms.
/sys/class/leds//link
# Program a SAMD21 part with a bootloader using a JLINK / J-LINK | |
# 0a. Wire up your device with SWD & SWC pins to JLINK | |
# 0b. Also wire up Gnd and Power to Gnd & VTref on JLINK | |
# 0c. And separately supply power to device | |
# 0d. Iif you don't have openocd installed, then "brew install openocd" | |
# | |
# 1. Put this file in a directory | |
# 2. Get a samd21 bootloader file.bin and put it in this directory renamed as "bootloader.bin" | |
# 3. Unplug and replug in the JLINK (to reset it) | |
# 4. Then do "openocd -f ./openocd-sams21.cfg" and stand back |
Here are two simple programs testing the performance of my rpio library against popular alternatives which use the /sys
interface (with the number of npm stars indicated for a rough idea of popularity).
This test is based on an example on the rpi-gpio page.
As modules which uses /sys
depend upon asynchronous behaviour they require callbacks to ensure that the next operation starts only when the previous one has completed.