mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-18 00:51:49 +01:00
V30H: Fix MX29L3211 flashing as 16bit in 8bit mode
This commit is contained in:
parent
45ec011087
commit
0ba4923699
@ -2,8 +2,8 @@
|
|||||||
Cartridge Reader for Arduino Mega2560
|
Cartridge Reader for Arduino Mega2560
|
||||||
|
|
||||||
Author: sanni
|
Author: sanni
|
||||||
Date: 2017-12-20
|
Date: 2018-01-09
|
||||||
Version: V30G
|
Version: V30H
|
||||||
|
|
||||||
SD lib: https://github.com/greiman/SdFat
|
SD lib: https://github.com/greiman/SdFat
|
||||||
LCD lib: https://github.com/adafruit/Adafruit_SSD1306
|
LCD lib: https://github.com/adafruit/Adafruit_SSD1306
|
||||||
@ -35,7 +35,7 @@
|
|||||||
infinest - help with GB Memory cart
|
infinest - help with GB Memory cart
|
||||||
|
|
||||||
**********************************************************************************/
|
**********************************************************************************/
|
||||||
char ver[5] = "V30G";
|
char ver[5] = "V30H";
|
||||||
|
|
||||||
/******************************************
|
/******************************************
|
||||||
Define Starting Point
|
Define Starting Point
|
||||||
@ -338,7 +338,7 @@ void aboutScreen() {
|
|||||||
display.drawBitmap(0, 0, sig, 128, 64, 1);
|
display.drawBitmap(0, 0, sig, 128, 64, 1);
|
||||||
println_Msg(F("Cartridge Reader"));
|
println_Msg(F("Cartridge Reader"));
|
||||||
println_Msg(F("github.com/sanni"));
|
println_Msg(F("github.com/sanni"));
|
||||||
print_Msg(F("2017 "));
|
print_Msg(F("2018 "));
|
||||||
println_Msg(ver);
|
println_Msg(ver);
|
||||||
println_Msg(F(""));
|
println_Msg(F(""));
|
||||||
println_Msg(F(""));
|
println_Msg(F(""));
|
||||||
@ -456,7 +456,7 @@ void setup() {
|
|||||||
// Serial Begin
|
// Serial Begin
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
Serial.println(F("Cartridge Reader"));
|
Serial.println(F("Cartridge Reader"));
|
||||||
Serial.println(F("2017 sanni"));
|
Serial.println(F("2018 sanni"));
|
||||||
Serial.println("");
|
Serial.println("");
|
||||||
// LED
|
// LED
|
||||||
rgb.setColor(0, 0, 255);
|
rgb.setColor(0, 0, 255);
|
||||||
|
@ -128,7 +128,7 @@ void flashromMenu8() {
|
|||||||
else if (flashromType == 2) {
|
else if (flashromType == 2) {
|
||||||
if (strcmp(flashid, "C2F3") == 0)
|
if (strcmp(flashid, "C2F3") == 0)
|
||||||
writeFlash29F1601();
|
writeFlash29F1601();
|
||||||
else if (strcmp(flashid, "C2F1") == 0)
|
else if ((strcmp(flashid, "C2F1") == 0) || (strcmp(flashid, "C2F9") == 0))
|
||||||
writeFlash29F1610();
|
writeFlash29F1610();
|
||||||
else if ((strcmp(flashid, "C2C4") == 0) || (strcmp(flashid, "C2A8") == 0) || (strcmp(flashid, "C2C9") == 0))
|
else if ((strcmp(flashid, "C2C4") == 0) || (strcmp(flashid, "C2A8") == 0) || (strcmp(flashid, "C2C9") == 0))
|
||||||
writeFlash29LV640();
|
writeFlash29LV640();
|
||||||
@ -946,7 +946,6 @@ void writeFlash29LV640() {
|
|||||||
// Write current byte
|
// Write current byte
|
||||||
writeByte_Flash(currByte + c, sdBuffer[c]);
|
writeByte_Flash(currByte + c, sdBuffer[c]);
|
||||||
// Check if write is complete
|
// Check if write is complete
|
||||||
//busyCheck29F032(sdBuffer[c]);
|
|
||||||
busyCheck29LV640(currByte + c, sdBuffer[c]);
|
busyCheck29LV640(currByte + c, sdBuffer[c]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user