1
0
Fork 0
CartCom/Arduino
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
..
ReceiveCart Arduino: Use 400kHz clock for I²C 2023-12-16 14:10:25 +00:00
SendCart Arduino: Use readBytes for cart read 2023-12-17 13:20:48 +00:00