## Project hardware
![project cover.jpg]

### Screen
1.69 inch LCD display 240x280 st7789 driver serial port ips display
Taobao: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.6fb12e8d3YlgTu&id=635773427645&_u=l1rfcsn5308
![image.png]

### Joystick
PSP joystick ultra-thin potentiometer
Taobao: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.6fb12e8d3YlgTu&id=642782754225&_u=l1rfcsn15fb
![image.png]

### Joystick cap
psp1000 joystick cap. It is not recommended to buy it because it does not match completely. I fixed it with hot melt glue. Buy
it on Pinduoduo
! [image.png]

### The
A and B keys use the blue axis of the mechanical keyboard, and I am going to
match them with a better-looking keyboard cap. Buy it on Pinduoduo
! [image.png]

The left and right keys and the reset key use ordinary light-touch keys, and they are matched with key caps
! [image.png]

Taobao: https://detail.tmall.com/item.htm?_u=l1rfcsnaf0b&id=649425394080&spm=a1z09.2.0.0.6fb12e8d3YlgTu
#### The vibration motor
chooses this motor with a large welding area
! [image.png]

LiChuang Mall: https://item.szlcsc.com/3130478.html
### The audio
uses 3020 4 ohm speaker
![image.png]

Taobao: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.6fb12e8d3YlgTu&id=672684930497&_u=l1rfcsn7128
## PCB circuit principle
### The power supply circuit
adopts the 5v charging and discharging integrated module of LiChuang open source, with very high integration. ~~~~
![image.png]

![image.png]

### Screen interface
![image.png]

### Amplifier speaker circuit
![image.png]

### Joystick circuit
![image.png]

## Key learning content
* Transplantation of ips display st7789 driver code
* Working principle and debugging of directional joystick
* Logical thinking of snake game
* Output of audio file
## Content to be improved
* Screen flashing, realization of C language buffer
* Making game menu
* Reading files from SD card
* Using font library