There was an error while loading. Please reload this page.
2 parents 90f63be + fdd928d commit 58fa264Copy full SHA for 58fa264
projects/weather-station/weather-station.ino
@@ -14,7 +14,7 @@
14
#define VBAT (analogRead(A0) * 0.013) // napięcie z baterii mierzone na wejściu A0 (dzielnik R4, R5 i VREF = 3.3V)
15
16
#define DS18_TEMPERATURE_CHANNEL 11
17
-
+#define RN_RESET_PIN 4
18
#define debugSerial Serial
19
SoftwareSerial loraSerial(6, 7); // port do komunikacji z RN2483 (RX, TX)
20
@@ -146,6 +146,8 @@ void setup()
146
// uruchomienie komunikacji z RN2483
147
loraSerial.begin(9600);
148
ttn.wake();
149
+ ttn.resetHard(RN_RESET_PIN);
150
+ ttn.reset(false);
151
ttn.onMessage(message);
152
153
// odczyt i wyświetlanie informacji z RN2483
0 commit comments