Skip to content

vertexi/tetris_mpy

Repository files navigation

Tetris in MicroPython

IMG_0048_reduced

game play demo: https://youtu.be/0AJZ8k9wzJs

Game play usage

  • Use joystick control block move around
  • Button B drop down
  • Button A rotate
  • Start button restart game
  • Select button pause game

Features

  • Play tetris theme
  • can use accelerometer to control block move around

Used libraries

Pin connection

FpOIcLOTHF0c3wosPhoOf3FB3Wkg

FnJF8vI6wkI0S9gPp2nyhZM0iBFK-16453476415222

Every pin setup are written in main.py

LCD ST7789

  • Pin 2 ---- SPI SCK ---- SCL
  • Pin 3 ---- SPI MOSI ---- SDA
  • Pin 0 ---- ST7789 Reset ----- nRESET
  • Pin 1 ---- ST7789 DC ---- D/C

Buttons

  • Pin 5 ---- Button B
  • Pin 6 ---- Button A
  • Pin 7 ---- Button Start
  • Pin 8 ---- Button Select

Accelerometer MMA7660

  • Pin 11 ---- I2C SCL ----- SCL
  • Pin 10 ---- I2C SDA ----- SDA
  • MMA7660 INT is not connected

LED Array(aka WS2812)

  • Pin 15 ---- SPI MOSI ---- DIN
  • Pin 14 ---- SPI SCK ----- not connected
  • Pin 12 ---- SPI MISO ----- not connected

Buzzer

  • Pin 23 ---- Buzzer

Todo

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages