diff options
author | Gabriel Marcano <[email protected]> | 2024-12-22 23:30:38 -0800 |
---|---|---|
committer | Gabriel Marcano <[email protected]> | 2024-12-22 23:33:21 -0800 |
commit | 9f92f6614d45e8ca5cd6bb1e4c1acacce6488750 (patch) | |
tree | d4574d37823bc72707fdab9fd5425db2338873cc | |
parent | 62b8182dee2e4c0bc326c1b8a23a1f15365fa65c (diff) | |
download | cartreader-9f92f6614d45e8ca5cd6bb1e4c1acacce6488750.tar.gz cartreader-9f92f6614d45e8ca5cd6bb1e4c1acacce6488750.zip |
Update Cart_Reader.ino
- Add support for simulating a long press for the serial interface by
seinding `l` or `L`. This lets someone actually run the SNES clock
calibration using the serial interface.
-rw-r--r-- | Cart_Reader/Cart_Reader.ino | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index f83ea2d..8ff5c1c 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -3210,6 +3210,11 @@ uint8_t checkButton() { return 3;
}
+ //Long Press (simulate)
+ else if ((incomingByte == 'l') || (incomingByte == 'L')) {
+ return 4;
+ }
+
return 0;
}
|