SkillAgentSearch skills...

SameBoyT4

Port of SameBoy, a highly accurate GB and GBC emulator to the Teensy4.1 microcontroller.

Install / Use

/learn @Ryzee119/SameBoyT4
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SameBoyT4

Port of SameBoy to the Teensy4.1 microcontroller.
This was just an educational exercise. All features of SameBoy are not implemeted. The performance is okay, but certainly not 100%.

  • Load ROMs/saves of the SD card. Currently filenames are hardcoded.
  • USB input driver (hardcoded for Xbox360 type controllers)
  • Save and load SRAM (Press Y to save)
  • Audio supported!

Needed Parts

| Qty | Part Description | Link | |--|--|--| | 1 | Teensy 4.1 | https://www.pjrc.com/store/teensy41.html | | 1 | USB Host Cable | https://www.pjrc.com/store/cable_usb_host_t36.html | | 3 | 0.1" Pin Header | https://www.pjrc.com/store/header_24x1.html | | 1 | 64Mbit PSRAM SOIC-8 | https://www.pjrc.com/store/psram.html | | 1 | ILI9341 TFT LCD Display (320x240) | AliExpress |

Wire-up

<p align="center"><img src="./images/install1.png" alt="install1" width="75%"/></p> <p align="center"><img src="./images/install2.png" alt="install2" width="75%"/></p>

Compile

CLI (Requires python and python-pip)

git clone https://github.com/Ryzee119/SameBoyT4.git --recursive
python -m pip install --upgrade pip
pip install platformio
cd SameBoyT4
platformio run -e teensy41

Visual Studio Code

  • Download and install Visual Studio Code.
  • Install the PlatformIO IDE plugin.
  • Clone this repo recursively git clone https://github.com/Ryzee119/SameBoyT4.git --recursive
  • In Visual Studio Code File > Open Folder... > SameBoyT4
  • Hit build on the Platform IO toolbar ().

Program

Teensy (using Teensy Loader)

Teensy (using Visual Studio Code)

  • Setup Visual Studio Code as per the Compile instructions.
  • Hit the program button on the Platform IO toolbar ().

Usage

  • Download the latest release of the winsdl version of SameBoy and copy the .bin files onto your SD card
  • Copy a GB/GBC rom onto the SD card and rename it to myrom.gbc. Alternatively modify platformio.ini to change the hardcoded name.

Images

<p align="center"><img src="./images/image1.jpg" alt="image1" width="35%"/> <img src="./images/image2.jpg" alt="image2" width="35%"/></p> <p align="center"><img src="./images/image3.jpg" alt="image3" width="35%"/> <img src="./images/image4.gif" alt="image4" height="35%"/></p> <p align="center"><img src="./images/SameBoyT4.jpg" alt="SameBoyT4" width="75%"/></p>
View on GitHub
GitHub Stars14
CategoryDevelopment
Updated1y ago
Forks0

Languages

C

Security Score

75/100

Audited on Apr 1, 2025

No findings