-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Greening
committed
Dec 8, 2024
1 parent
1456f8f
commit 3dcba1b
Showing
10 changed files
with
90 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,60 @@ | ||
|
||
[](https://github.com/atomic14/esp32-zxspectrum/actions/workflows/build_firmware.yml) | ||
|
||
# Overview | ||
# ESP32 Rainbow | ||
|
||
This is heavily inspired b the [OpenVegaPlus](https://github.com/alvaroalea/OpenVegaPlus) project. But I've hacked around the code quite substantially. | ||
This repository contains the software for the [ESP32 Rainbow project](https://www.crowdsupply.com/atomic14/esp32-rainbow). | ||
|
||
Currently it should support a variety of different boards - have a look in `platform.io` for inspiration. | ||
 | ||
|
||
# Warning | ||
The code is designed for my board, but will run on pretty much any ESP32 board. | ||
|
||
This is just me messing around - I'm not going to provide any support for this project in its current state. It's purely for my own amusement. | ||
This is currently a work in progress and is under active development. So, I can't guarantee that the code will be stable. | ||
|
||
You are free to use it. The OpenVegaPlus project was released under the GNU GPL - so this project is too. | ||
You will need to install [Visual Studio Code](https://code.visualstudio.com/download) and [PlatformIO](https://platformio.org/install) to build the code. | ||
|
||
# Supported boards | ||
|
||
Check the `platformio.ini` file for the complete list of suppoted boards. | ||
|
||
To add a new board make a copy of an existing board section in the file and modify the pins to match your board. | ||
|
||
- ESP32 Rainbow | ||
- Cheap Yellow Display (CYD) | ||
- LilyGo T-Deck | ||
|
||
Pretty much any ESP32 board should work, you just need a 320x240 TFT display and either I2S amplifier or speaker driven with a transistor. | ||
|
||
# Input | ||
|
||
My board (the [ESP32 Rainbow](https://www.crowdsupply.com/atomic14/esp32-rainbow) has a built in keyboard and has 2xQWIIC connectors which can be used to connect a wide range of controllers (e.g. Wii Nunchucks). | ||
|
||
The LilyGo T-Deck has a keyboard, but the firmware for the keyboard is pretty terrible making it very hard to use. | ||
|
||
The CYD has no keyboard, but you should be able to hook up I2C devices to it. | ||
|
||
Alternatively, you can use some python code in the `keyboard-server` directory to use your desktop keyboard to type. This has only been tested on a Mac - I've no idea if it will work on Windows. | ||
|
||
```sh | ||
cd keyboard-server | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
python serial_keyboard.py | ||
``` | ||
|
||
# SDCard/Flash Storage | ||
|
||
The CYD and my board have an SD card slot that is independent of the SPI bus used by the TFT display. This means you can use the SD card slot to store games. | ||
|
||
The LilyGo T-Deck has as SD card but it uses the same SPI bus as the TFT display. I have not managed to get both of them to work simultaneously. If someone wants to dig into this and fix it then please let me know. | ||
|
||
If you can't use the SD card then drop any games (z80 or tzx/tap) into the `data` folder. You will then need to use the platformio menu to upload the filesystem to the device. | ||
|
||
For anyone using an SD card, make sure it is formatted with the FAT32 filesystem and drop any games (z80 or tzx/tap) into the root of the card. | ||
|
||
# Help Support Development | ||
|
||
If you find this project useful and want to help support further development then please consider buying a board from my [Crowd Supply](https://www.crowdsupply.com/atomic14) page. | ||
|
||
Or you can back me on [Patreon](https://www.patreon.com/atomic14). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
sdl_app | ||
sdl_app.* | ||
zx_emulator | ||
zx_emulator.* | ||
emsdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters