Makefile 1.1 KB

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