game play demo: https://youtu.be/0AJZ8k9wzJs
- Use joystick control block move around
- Button B drop down
- Button A rotate
- Start button restart game
- Select button pause game
- Play tetris theme
- can use accelerometer to control block move around
- ws2812-SPI located at:
libs/ws2812.py
- buzzer_music located at:
libs/buzzer_music.py
- st7789_mpy build in firmware located at:
firmware/firmware.uf2
- MMA7660_driver_mpy located at:
libs/mma7660.py
Every pin setup are written in main.py
- Pin 2 ---- SPI SCK ---- SCL
- Pin 3 ---- SPI MOSI ---- SDA
- Pin 0 ---- ST7789 Reset ----- nRESET
- Pin 1 ---- ST7789 DC ---- D/C
- Pin 5 ---- Button B
- Pin 6 ---- Button A
- Pin 7 ---- Button Start
- Pin 8 ---- Button Select
- Pin 11 ---- I2C SCL ----- SCL
- Pin 10 ---- I2C SDA ----- SDA
- MMA7660 INT is not connected
- Pin 15 ---- SPI MOSI ---- DIN
- Pin 14 ---- SPI SCK ----- not connected
- Pin 12 ---- SPI MISO ----- not connected
- Pin 23 ---- Buzzer
- pause
- text message
- score
- replay
- button noise(set don't allow consecutive action)
- speed setting
- color
- music
- width setting
- settings
- score change music
- central
- zen mode