cfrankb / cs3_rp2040_pico

Port of an MS-DOS Game to the RP-2040/Pico using the ILI9341 lcd and a joystick module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This project is a game port to the RP2040 / Raspberry Pico microcontroller of an MS-DOS Game.

Current status is alpha. 90% of the core mechanic has been implemented.

Original MS-DOS

Image

RP2040 / Raspberry Pico

Image

I am also releasing the source code for the map editor: https://github.com/cfrankb/cs3-map-edit

Software required

RP2040 SDK Pico

Build and Installation

git clone git@github.com:cfrankb/cs3_rp2040_pico.git
cd cs3_rp2040_pico
mkdir -p build
cd build
cmake ..
make

Copy the UF2 file to your Pico.

Tested with this hardware

Driver Resolution Max SPI Freq Tested
ST7789 240x320 20M Not tested
ILI9341 240x320 40M Works

ILI9341

https://www.aliexpress.com/item/33040270372.html

ST7789 wirecolor GPIO Pin
SDK/MISO purple 4
LED / BL grey 1
SCK yellow 6
SDI/MOSI orange 7
DC green 9
RESET brown 8
CS white 5
GRN black GRN
VCC red 3.3v or 5v

Joystick

https://www.aliexpress.com/item/32345829014.html

JOYSTICK wirecolor GPIO Pin
VRX brown 26
VRY white 27
SW blue 28
GRN black GRN
VCC red 3.3v

Dupont cables

https://www.aliexpress.com/item/1005004611997111.html

Button Module (optional)

https://www.aliexpress.com/item/32909058328.html

Module wirecolor GPIO Pin
GRN black GRN
OUT green 4
VCC red 3.3v / 5v

About

Port of an MS-DOS Game to the RP-2040/Pico using the ILI9341 lcd and a joystick module.


Languages

Language:C++ 78.7%Language:C 15.3%Language:CMake 5.4%Language:Assembly 0.5%