diff options
Diffstat (limited to 'assignments/old/read-temperature/solution')
-rw-r--r-- | assignments/old/read-temperature/solution/read-temperature/read-temperature.ino | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/assignments/old/read-temperature/solution/read-temperature/read-temperature.ino b/assignments/old/read-temperature/solution/read-temperature/read-temperature.ino deleted file mode 100644 index b261dc5..0000000 --- a/assignments/old/read-temperature/solution/read-temperature/read-temperature.ino +++ /dev/null @@ -1,24 +0,0 @@ -#include <DHT.h> -#include <DHT_U.h> - -const auto DHTPIN = D1; -const auto DHTTYPE = DHT22; - -DHT_Unified dht(DHTPIN, DHTTYPE); - -void setup() { - Serial.begin(115200); - pinMode(D2, INPUT); - pinMode(D0, OUTPUT); -} - -void loop() { - if (digitalRead(D2) == HIGH) { - Serial.println("HIGH"); - } else { - Serial.println("LOW"); - } - digitalWrite(D0, digitalRead(D2)); - delay(100); -} - |