1
0
Fork 0
Repository for practical exercices where students load PICO-8 cartridges to Unity from an EEPROM.
Find a file
Ada-CD 7172857248 Arduino: Use readBytes for cart read
The Wire documentation only shows read() to get data from
the I²C stream.
However, Wire inherits from Stream, so it gets access to
all the same functions, like readBytes(), which can read
more than one character.

Replace the innermost loop of the cartridge load by
readBytes instead of calling read() in a loop.
2025-12-11 20:06:33 +00:00
Arduino Arduino: Use readBytes for cart read 2025-12-11 20:06:33 +00:00
Assets Unity: Complete the Unity code 2025-12-11 20:06:33 +00:00
Library Update gitignore to share open scene 2025-12-06 20:28:05 +00:00
Packages Update and clean-up for Unity 6.0 2025-12-06 20:28:05 +00:00
ProjectSettings Update and clean-up for Unity 6.0 2025-12-06 20:28:05 +00:00
UIElementsSchema Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00
.gitignore Update gitignore to share open scene 2025-12-06 20:28:05 +00:00
CartCom.sln Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00
LICENSE Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00
README.md Arduino: Complete the Arduino code 2025-12-11 20:06:19 +00:00

CartCom

This is a Unity project that loads a PICO-8 cartridge from a physical EEPROM, via an Arduino. This has been tested with Unity 6000.0.63f1.

It allows connecting to a serial port from the interface, saving or loading a cartridge via the serial port and starting the PICO-8 console with it.
Thus, it is necessary to provide the path to a PICO-8 executable in the inspector to be able to play the games !

The goal here is for students to fill in the blanks regarding the communication between the Arduino and the EEPROM, and the Arduino and Unity.

The corresponding Arduino code is in :