This is an example everloop program running in a docker container that uses the Matrix Creator attached to a raspberry pi.
docker run \
-v /usr/include/matrix_hal:/usr/include/matrix_hal \
-v /usr/lib/libmatrix_creator_hal.so:/usr/lib/libmatrix_creator_hal.so \
-v /usr/lib/libwiringPi.so:/usr/lib/libwiringPi.so \
-v /usr/lib/libwiringPiDev.so:/usr/lib/libwiringPiDev.so \
--device=/dev/spidev0.0:/dev/spidev0.0 \
cdmnky/matrix-everloop:1.0.2-arm32v7
Stop the container by running the following command in another terminal:
docker kill -s SIGINT <container_id>
- Raspberry Pi (3b or 4 is suggested)
- Matrix Creator
- Matrix Hal must be installed on the host system
- Docker must be installed on the host system
Building the docker container must be done on a raspberry pi with Matrix Hal already installed.
packer build packer.json
- Raspberry Pi (3b or 4 is suggested)
- Matrix Creator
- Matrix Hal must be installed on the host system
- Docker must be installed on the host system
- Packer must be installed on the host system