Weird. I repeated steps again (using the same kernel 4.4.132-1075-rockchip-ayufan-ga83beded8524) with success.
Every eink module have own demo. Let's choose 1.54" and demo.
Connect SPI device pinheader Pi-2 Bus:
And demo the demo (under root) but untested:
- Do all under root ("sudo bash") (Permission denied!). '#' is root prompt, '$' is user prompt.
- "dtc" warning are ok.
- Yes, you must change device from /dev/spidev0,0 to spidev32766.1 in application. The numbering is platform dependent.
Every eink module have own demo. Let's choose 1.54" and demo.
Connect SPI device pinheader Pi-2 Bus:
- VCC = pin 17 (3.3V)
- GND = pin 20 (GND)
- DIN <- pin 19 (GPIO3_A1 (SPI_TXD_M2))
- CLK <- pin 24 (GPIO3_A0 (SPI_CLK_M2))
- CS <- pin 26 GPIO2_B4 (SPI_CSN1_M0)
- D/C <- pin 15 GPIO3_A4
- RES <- pin 16 GPIO3_A5
- BUSY -> pin 18 GPIO3_A6
And demo the demo (under root) but untested:
Code:
# ls /dev/spidev*
/dev/spidev32766.1
# ### retrieve original
# wget https://www.waveshare.com/w/upload/7/73/1.54inch_e-Paper_Module_code.7z
# apt install p7zip
# 7zr x 1.54inch_e-Paper_Module_code.7z raspberrypi/python/*
# ### use attached copy (modified but unable to check it)
# tar xf epaper_demo.tar
# ls *.py *.bmp
epd1in54.py epdif.py main.py monocolor.bmp
# ### compare changes
# for i in raspberrypi/python/*.py; do diff -u $i .; done
# ### install required libraries and fonts
# git clone https://github.com/Leapo/Rock64-R64.GPIO.git
# ln -s Rock64-R64.GPIO/R64 .
# apt install fonts-freefont-ttf
# apt install python-pil
# apt install python-pip python-setuptools python-dev
# pip install spidev
# ### try demo
# python main.py
I left this community in Aug 2019 due to PINE64 refusal to produce/deliver ROCK64-1G version 3 after more than one year of changing statuses to "planning", "evaluating", "releasing", "availability", "estimated availability" and finally "no schedule" . ROCK64 is dead platform without any advantage. Buy Raspberry PI 4 !