• Witaj na Forum Arduino Polska! Zapraszamy do rejestracji!
  • Znajdziesz tutaj wiele informacji na temat hardware / software.
Witaj! Logowanie Rejestracja


Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
problem z setupem
#1
Question 
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__));
   
 }
 }
 
Odpowiedź
  


Wiadomości w tym wątku
problem z setupem - przez mikoh81 - 02-06-2018, 13:23
RE: problem z setupem - przez kaczakat - 02-06-2018, 13:27

Skocz do:


Przeglądający: 1 gości