Enable Internal Pull-ups for MD

https://github.com/sanni/cartreader/issues/1007
This commit is contained in:
sanni 2024-08-02 10:43:11 +02:00
parent b8f0eeb0af
commit bf90513edc
3 changed files with 6 additions and 3 deletions

View File

@ -4,8 +4,8 @@
This project represents a community-driven effort to provide This project represents a community-driven effort to provide
an easy to build and easy to modify cartridge dumper. an easy to build and easy to modify cartridge dumper.
Date: 2024-07-08 Date: 2024-08-02
Version: 14.0 Version: 14.1
SD lib: https://github.com/greiman/SdFat SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/olikraus/u8g2 LCD lib: https://github.com/olikraus/u8g2

View File

@ -697,6 +697,9 @@ void dataOut_MD() {
void dataIn_MD() { void dataIn_MD() {
DDRC = 0x00; DDRC = 0x00;
DDRA = 0x00; DDRA = 0x00;
// Enable Internal Pullups (needed for games like Batman Forever that are open bus with random bytes on the last 1MB, so we get a clean 0xFF padding)
PORTC = 0xFF;
PORTA = 0xFF;
} }
/****************************************** /******************************************

View File

@ -49,7 +49,7 @@
* String Constants * String Constants
**/ **/
// Firmware Version // Firmware Version
constexpr char PROGMEM FSTRING_VERSION[] = "V14.0"; constexpr char PROGMEM FSTRING_VERSION[] = "V14.1";
// Universal // Universal
constexpr char PROGMEM FSTRING_RESET[] = "Reset"; constexpr char PROGMEM FSTRING_RESET[] = "Reset";