| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- include config.mk
- RASPI_REMOTE?=${RASPI_USER}@${RASPI_IP}
- run:
- ssh pi@${RASPI_IP} "cd ${DEPLOY_DIR};./bin/simpi.py ${ARGS}"
- rerun: update run
- deploy: bcmlib wiringpi pythonlib
- update:
- ssh ${RASPI_REMOTE} mkdir -p ${DEPLOY_DIR}/sub/
- rsync -ai Makefile config.mk simpilib bin ${RASPI_REMOTE}:${DEPLOY_DIR}/
- rsync -ai --delete sub/wavesharelib/RaspberryPi\&JetsonNano/python/ ${RASPI_REMOTE}:${DEPLOY_DIR}/wavesharelib/
- install_ssh: update remote/deploy
- ssh/%:
- ssh ${RASPI_REMOTE} "cd raspi-zero-waveshare;${*}"
- remote/%:
- ssh ${RASPI_REMOTE} "cd raspi-zero-waveshare;$(MAKE) ${*}"
- bcmlib:
- wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz
- tar zxvf bcm2835-1.60.tar.gz
- cd bcm2835-1.60/ && \
- sudo ./configure && \
- sudo make && \
- sudo make check && \
- sudo make install
- #For more details, please refer to http://www.airspayce.com/mikem/bcm2835/
- wiringpi:
- sudo apt-get install wiringpi
- #For Pi 4, you need to update it:
- wget https://project-downloads.drogon.net/wiringpi-latest.deb
- sudo dpkg -i wiringpi-latest.deb
- rm -rf wiringpi-latest.deb
- gpio -v
- #You will get 2.52 information if you install it correctly
- pythonlib:
- #python3
- sudo apt-get update
- sudo apt-get install python3-pip python3-pil python3-numpy
- sudo pip3 install RPi.GPIO spidev
- # demo-py/%:
- # cd e-Paper/RaspberryPi\&JetsonNano/python/examples && sudo python3 ${*}
- #
- # demo-c:
- # $(MAKE) -C e-Paper/RaspberryPi\&JetsonNano/c/ clean
- # $(MAKE) -C e-Paper/RaspberryPi\&JetsonNano/c/
- # cd e-Paper/RaspberryPi\&JetsonNano/c/ && ./epd
- #
|