diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-06-14 00:11:29 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-06-14 00:11:29 +0200 |
commit | 659dbd8d3c0c5ec2d811c0ffc65f1e92eac98782 (patch) | |
tree | 7620caf24bcc4e86a27af4e0803a06042f3848be /assignments/old/read-temperature/solution | |
parent | 5c46fab6cee7568332aef7371212425819d672df (diff) | |
download | iot-workshop-ndc-2018-659dbd8d3c0c5ec2d811c0ffc65f1e92eac98782.tar.gz iot-workshop-ndc-2018-659dbd8d3c0c5ec2d811c0ffc65f1e92eac98782.tar.bz2 iot-workshop-ndc-2018-659dbd8d3c0c5ec2d811c0ffc65f1e92eac98782.tar.xz iot-workshop-ndc-2018-659dbd8d3c0c5ec2d811c0ffc65f1e92eac98782.zip |
wip
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); -} - |