Addapted MEGA games compilation from https://www.tinyjoypad.com/esp8285
Components:
- RPI PICO RP2040
- SSD1309 128x64 SPI OLED DISPLAY
- piezzo buzzer
- 5 push-buttons
- breadboards
- multiple jumper calbles
- optional pull-down resistors (10 Ohm), can be just wire
- optional electrolytic condenser rated for at least 10V and 220uF
Libraries used for display:
u8g2 library: https://github.com/olikraus/u8g2/wiki/u8g2reference
Connections:
GND --> Display GND 3V3(OUT) -> Display VCC GP16 -> Display DC (Data Command) GP17 -> Display CS (Channel Select) GP18 -> Display SCL (Clock) GP19 -> Display SDA (MOSI) GP20 -> Display RES (Reset)
GP15 -> button UP GP14 -> button DOWN GP13 -> button LEFT GP12 -> button RIGHT GP11 -> button FIRE (all buttons to GND)
GP10 -> Buzzer(+) GND -> Buzzer(-)