Following that proposal
I prepared an SD card image (485 MB) with pre-installed libpruio based on RCNs am335x-debian-12.2-minimal-armhf-2023-10-07-2gb.img.xz. In order to test, either download in your browser file am335x-debian-12.2-minimal-armhf-2023-10-07-2gb-libpruio.img.xz and use BelenaEtcher to burn it on SD card (>2.5 GB). Or on a LINUC-PC download and burn that image like
wget https://kdywntxwxkflh5ba.myfritz.net/nas/filelink.lua?id=b14916149572a77d
sudo sh -c "xzcat filelink.lua?id=b14916149572a77d | dd of=/dev/sd? conv=sync,noerror status=progress"
Then Boot BeagleBone from SD and log in (debian:temppwd). The example binaries are pre-installed, just execute them by pruio_XXX (replace XXX by the example name) like
pruio_1 # print some ADC values
pruio_analyse # print register settings
pruio_sos # blink user LED in SOS code
...
The folders example.*
contain some source code:
- examples.bas for FreeBASIC: compile by
fbc -march=armV7-a+fp -w all XXX.bas
- examples.c for C: compile by
gcc -Wall -o XXX XXX.c -lpruio
(replace XXX by example name).
Find in folder libpruio.deb
some related packages. Ie you can install the libpruio-doc* package at your PC in order to read the documentation off-line in an HTML-browser.
Note: only users in group pruio
have full user-space access to libpruio features.
Regards