1
0
Fork 0
Repository for practical exercices where students load PICO-8 cartridges to Unity from an EEPROM.
Find a file
Teo-CD fab5d22364 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.
2023-12-17 13:20:48 +00:00
Arduino Arduino: Use readBytes for cart read 2023-12-17 13:20:48 +00:00
Assets Unity: Use UInt16.MaxValue rather than hardcoding 65536 2023-12-16 14:10:28 +00:00
Packages Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00
ProjectSettings Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00
UIElementsSchema Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00
.gitignore Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00
Assembly-CSharp.csproj Setup project, only UI and basic code 2023-11-12 20:59:38 +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 Setup project, only UI and basic code 2023-11-12 20:59:38 +00:00

CartCom

This is a Unity project that communicates with an Arduino board to transfer PICO-8 cartridges between the computer and an EEPROM.

It allows connecting to a serial port from the interface, load and write to a cartridge and start a PICO-8 console.
Thus, it is necessary to provide the path to a PICO-8 executable in the inspector for the full functionality.

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 :

It has been tested on Unity 2022.3.9f1.