- Raspberry pi (Tested with using zero WH)
- Raspberry pi camera (Tested with using that for zero)
- 0.96" 160x80 Color TFT Display
Raspberry pi | LCD |
---|---|
5V | VCC |
GND | GND |
GPIO3 | TFTCS |
GPIO27 | DC |
GPIO22 | RST |
GPIO10 (SPI0 MOSI) | MOSI |
GPIO9 (SPI0 MISO) | MISO |
GPIO11 (SPI0 SCLK) | SCLK |
sudo raspi-config
- Activate
Interfaces
->SPI
- Activate 'Interfaces' ->
Camera
- reboot
sudo apt install python3-pygame python3-picamera
sudo modprobe fbtft_device name=adafruit18 gpios=reset:22,dc:27,cs:3 rotate=90
Stop fbtft_device (But sometime it is not enough. I suggest rebooting to reset fbtft.)
sudo modprobe -r fbtft_device
sudo python3 hello.py
sudo python3 drawing.py
sudo python3 show_camera_image.py
Add commands to /etc/rc.local
.
modprobe fbtft_device name=adafruit18 gpios=reset:22,dc:27,cs:3 rotate=90
python3 [path for this project]/[program name] &
MIT