- AGB-001
- ASS101 screen
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |