Skip to content

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

Notifications You must be signed in to change notification settings

cfrankb/cs3_rp2040_pico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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