-
center text in the middle of the terminal
-
massive cleanup when the tests are done
-
write some tests (very minimal atm)
-
hook MCP4725 with minimal tui app
- hook steering
- hook brake
- hook gas
-
vertical widgets?
-
use https://github.com/vgasparyan/mcp4725-rs for DAL output
-
use https://github.com/golemparts/rppal to interact with GPIO
Couples things had to be done to compile on the Pi (no cross-compilation yet). Had to install a couple of packages and enable eudev.
The packages I installed (apk add):
- linux-headers
- libudev-zero --repository="https://dl-cdn.alpinelinux.org/alpine/edge/community"
- eudev-dev
- eudev
- udev-init-scripts
I also ran this script, not sure if it was needed:
- setup-devd udev
I'll need to do a fresh install to see what really needs to be installed. I also really want to cross compile since it takes forever on the Pi.
On alpine linux, to enable i2c you need to change some stuff in /etc/modules and /boot/config.txt. This article explains it.
The changes:
/boot/config.txtyou have to adddtparam=i2c_arm=on./etc/modulesyou have to addi2c-dev.