Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. include config.mk
  2. test:
  3. python3 test.py
  4. deply: bcmlib wiringpi pythonlib
  5. update: wavesharelib
  6. rsync -ai bin Makefile pi@${RASPI_IP}:raspi-zero-waveshare/
  7. rsync -ai wavesharelib/RaspberryPi\&JetsonNano/python/ pi@${RASPI_IP}:raspi-zero-waveshare/lib/
  8. run/%:
  9. ssh pi@${RASPI_IP} "cd raspi-zero-waveshare;./bin/${*}.py ${ARGS}"
  10. ssh/%:
  11. ssh pi@${RASPI_IP} "cd raspi-zero-waveshare;${*}"
  12. remote/%:
  13. ssh pi@${RASPI_IP} "cd raspi-zero-waveshare;$(MAKE) ${*}"
  14. bcmlib:
  15. wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz
  16. tar zxvf bcm2835-1.60.tar.gz
  17. cd bcm2835-1.60/ && \
  18. sudo ./configure && \
  19. sudo make && \
  20. sudo make check && \
  21. sudo make install
  22. #For more details, please refer to http://www.airspayce.com/mikem/bcm2835/
  23. wiringpi:
  24. sudo apt-get install wiringpi
  25. #For Pi 4, you need to update it:
  26. wget https://project-downloads.drogon.net/wiringpi-latest.deb
  27. sudo dpkg -i wiringpi-latest.deb
  28. rm -rf wiringpi-latest.deb
  29. gpio -v
  30. #You will get 2.52 information if you install it correctly
  31. pythonlib:
  32. #python3
  33. sudo apt-get update
  34. sudo apt-get install python3-pip python3-pil python3-numpy
  35. sudo pip3 install RPi.GPIO spidev
  36. wavesharelib:
  37. git clone https://github.com/waveshare/e-Paper wavesharelib
  38. demo-py/%:
  39. cd e-Paper/RaspberryPi\&JetsonNano/python/examples && sudo python3 ${*}
  40. demo-c:
  41. $(MAKE) -C e-Paper/RaspberryPi\&JetsonNano/c/ clean
  42. $(MAKE) -C e-Paper/RaspberryPi\&JetsonNano/c/
  43. cd e-Paper/RaspberryPi\&JetsonNano/c/ && ./epd