mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
V17C: Added changes by zzattack
This commit is contained in:
parent
8cee474a3f
commit
ec1347fd8a
@ -2,8 +2,8 @@
|
||||
Nintendo Cart Reader for Arduino Mega2560
|
||||
|
||||
Author: sanni
|
||||
Date: 2016-07-13
|
||||
Version: V17B
|
||||
Date: 2016-07-29
|
||||
Version: V17C
|
||||
|
||||
SD lib: https://github.com/greiman/SdFat
|
||||
LCD lib: https://github.com/adafruit/Adafruit_SSD1306
|
||||
@ -29,7 +29,7 @@
|
||||
Snes9x - SuperFX Sram Fix
|
||||
|
||||
**********************************************************************************/
|
||||
char ver[5] = "V17B";
|
||||
char ver[5] = "V17C";
|
||||
|
||||
/******************************************
|
||||
Choose Output
|
||||
|
@ -30,8 +30,9 @@ const char SnesMenuItem1[] PROGMEM = "Read Rom";
|
||||
const char SnesMenuItem2[] PROGMEM = "Read Save";
|
||||
const char SnesMenuItem3[] PROGMEM = "Write Save";
|
||||
const char SnesMenuItem4[] PROGMEM = "Test SRAM";
|
||||
const char SnesMenuItem5[] PROGMEM = "Reset";
|
||||
const char* const menuOptionsSNES[] PROGMEM = {SnesMenuItem1, SnesMenuItem2, SnesMenuItem3, SnesMenuItem4, SnesMenuItem5};
|
||||
const char SnesMenuItem5[] PROGMEM = "Cycle cart";
|
||||
const char SnesMenuItem6[] PROGMEM = "Reset";
|
||||
const char* const menuOptionsSNES[] PROGMEM = {SnesMenuItem1, SnesMenuItem2, SnesMenuItem3, SnesMenuItem4, SnesMenuItem5, SnesMenuItem6};
|
||||
|
||||
// Manual config menu items
|
||||
const char confMenuItem1[] PROGMEM = "Use header info";
|
||||
@ -46,8 +47,8 @@ void snesMenu() {
|
||||
// create menu with title and 7 options to choose from
|
||||
unsigned char mainMenu;
|
||||
// Copy menuOptions of of progmem
|
||||
convertPgm(menuOptionsSNES, 5);
|
||||
mainMenu = question_box("SNES Cart Reader", menuOptions, 5, 0);
|
||||
convertPgm(menuOptionsSNES, 6);
|
||||
mainMenu = question_box("SNES Cart Reader", menuOptions, 6, 0);
|
||||
|
||||
// wait for user choice to come back from the question box menu
|
||||
switch (mainMenu)
|
||||
@ -108,6 +109,19 @@ void snesMenu() {
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// For arcademaster1 (Markfrizb) multi-game carts
|
||||
// Set reset pin to output (PH0)
|
||||
DDRH |= (1 << 0);
|
||||
// Switch RST(PH0) to LOW
|
||||
PORTH &= ~(1 << 0);
|
||||
display_Clear();
|
||||
print_Msg("Resetting...");
|
||||
display_Update();
|
||||
delay(3000); // wait 3 secs to switch to next game
|
||||
asm volatile (" jmp 0");
|
||||
break;
|
||||
|
||||
case 5:
|
||||
asm volatile (" jmp 0");
|
||||
break;
|
||||
}
|
||||
@ -404,11 +418,13 @@ void getCartInfo_SNES() {
|
||||
display_Update();
|
||||
|
||||
// Wait for user input
|
||||
println_Msg(F(" "));
|
||||
println_Msg(F(" "));
|
||||
println_Msg(F("Press Button..."));
|
||||
display_Update();
|
||||
wait();
|
||||
if (enable_OLED) {
|
||||
println_Msg(F(" "));
|
||||
println_Msg(F(" "));
|
||||
println_Msg(F("Press Button..."));
|
||||
display_Update();
|
||||
wait();
|
||||
}
|
||||
|
||||
// Start manual config
|
||||
if (manualConfig == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user