Skip to content

asukiaaa/raspi_tft_display_camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspi_tft_display_camera

image

Components

Wiring

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

Setup

Activate SPI and Camera

sudo raspi-config
  1. Activate Interfaces -> SPI
  2. Activate 'Interfaces' -> Camera
  3. reboot

Install dependencies

sudo apt install python3-pygame python3-picamera

Usage

Start TFT display

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

Show hello world

sudo python3 hello.py

Show polygon and lines

sudo python3 drawing.py

Show camera image

sudo python3 show_camera_image.py

Auto start

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] &

License

MIT

References

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages