02-06-2018, 13:23
Witam, chciałbym się zapytać co blokuje ten skrypt.:
Kod:
void setup() {
if (!SD.begin(4)) {
Serial.println("initialization failed!");
// while (1);
}
Serial.println("initialization done.");
myFile = SD.open("dane.txt", FILE_WRITE);
Serial.begin(9600); // Serial port to computer
HC12.begin(9600);
Wire.begin();
RTC.begin();
// Check to see if the RTC is keeping time. If it is, load the time from your computer.
if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
// This will reflect the time that your sketch was compiled
RTC.adjust(DateTime(__DATE__, __TIME__));
}
}