mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-23 07:29:14 -08:00
Better ATmega32u4 detection
This commit is contained in:
@@ -52,6 +52,14 @@ bool SDInterface::initSD() {
|
|||||||
//if (this->supported)
|
//if (this->supported)
|
||||||
// buffer_obj.open(&SD);
|
// buffer_obj.open(&SD);
|
||||||
|
|
||||||
|
// Check for SCRIPTS folder
|
||||||
|
if (!SD.exists("/SCRIPTS")) {
|
||||||
|
Serial.println("/SCRIPTS does not exist. Creating...");
|
||||||
|
|
||||||
|
SD.mkdir("/SCRIPTS");
|
||||||
|
Serial.println("/SCRIPTS created");
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ void A32u4Interface::begin() {
|
|||||||
|
|
||||||
Serial.println("Setup A32U4 Serial Interface");
|
Serial.println("Setup A32U4 Serial Interface");
|
||||||
|
|
||||||
|
MySerial_two.println("DELAY 1");
|
||||||
|
|
||||||
|
delay(1000);
|
||||||
|
|
||||||
uint8_t a32u4_rep = 0;
|
uint8_t a32u4_rep = 0;
|
||||||
|
|
||||||
if (MySerial_two.available()) {
|
if (MySerial_two.available()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user