| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- include config.mk
- test:
- python3 test.py
- deply: bcmlib wiringpi pythonlib
- update: wavesharelib
- rsync -ai bin Makefile pi@${RASPI_IP}:raspi-zero-waveshare/
- rsync -ai wavesharelib/RaspberryPi\&JetsonNano/python/ pi@${RASPI_IP}:raspi-zero-waveshare/lib/
- run/%:
- ssh pi@${RASPI_IP} "cd raspi-zero-waveshare;./bin/${*}.py ${ARGS}"
- ssh/%:
- ssh pi@${RASPI_IP} "cd raspi-zero-waveshare;${*}"
- remote/%:
- ssh pi@${RASPI_IP} "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
- wavesharelib:
- git clone https://github.com/waveshare/e-Paper wavesharelib
- 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
|