Zmiana RTC - > nowy moduł loggera
This commit is contained in:
@@ -47,7 +47,7 @@ DHT dhtL(DHTPIN_L, DHT22);
|
||||
DHT dhtM(DHTPIN_M, DHT22);
|
||||
DHT dhtH(DHTPIN_H, DHT22);
|
||||
|
||||
RTC_DS3231 rtc; // Obiekt dla DS3231
|
||||
RTC_DS1307 rtc; // Obiekt dla RTC_DS1307
|
||||
int menuL0 = 10;
|
||||
int menuL1 = 10;
|
||||
int menuL2 = 10;
|
||||
@@ -204,7 +204,7 @@ void setup() {
|
||||
analogSetAttenuation(ADC_11db);
|
||||
|
||||
if (!rtc.begin()) {
|
||||
Serial.println("Nie znaleziono DS3231 RTC!");
|
||||
Serial.println("Nie znaleziono DS1307 RTC!");
|
||||
}
|
||||
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Address 0x3C for 128x32
|
||||
display.setTextSize(1);
|
||||
@@ -235,7 +235,7 @@ void setup() {
|
||||
|
||||
display.println("DHT22");
|
||||
display.setCursor(40, 16);
|
||||
display.println("RTC: DS3231");
|
||||
display.println("RTC: DS1307");
|
||||
display.setCursor(0, 24);
|
||||
display.println("Battery: ");
|
||||
display.setCursor(55, 24);
|
||||
|
||||
Reference in New Issue
Block a user