In theory, this should work on any SBC, running Linux, with drivers for the relevant GPIO/I2C/SPI/PWM subsystems available on the system-on-chip (SoC)

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-10-13 02:30:03

In theory, this should work on any SBC, running Linux, with drivers for the relevant GPIO/I2C/SPI/PWM subsystems available on the system-on-chip (SoC). This is just a list of chips and products confirmed working.

Note: These are simplified instructions for a few SBCs, to get you going quickly. denko-piboard uses standard Linux interfaces, so should work for many. See the board maps readme.

Note: The Radxa docs are missing I2C3_SDA_M0 and I2C3_SCL_M0 in the function columns for GPIOs 32 and 33 respectively. This is an error. I2C3 works on these pins.

By default, only the Linux root user can use GPIO / I2C / SPI / PWM. If you have a default board map at ~/.denko_piboard_map.yml, save this script to your SBC, then run it:

Note: If you automate this script to run at boot (recommended), it will run as root. Set the USERNAME constant to your Linux user's name as a String literal. This ensures the map loads from your home, and changes are applied to your user, not root.

Some examples are included in this gem, but the main denko gem is more comprehensive. Those are written for connected microcontrollers, Denko::Board, but can be modified for Denko::PiBoard:

Leave a Comment