Addapted MEGA games compilation from https://www.tinyjoypad.com/esp8285
Much better performance with Adafruit SSD1306 library for SPI-OLED
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:
Adafruit SSD1306 library: https://github.com/adafruit/Adafruit_SSD1306
Good performance with RPi Pico RP2040 and 2.42" SPI OLED SSD1309: ~100fps
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(-)