From a9164b476a65b722026215e6b6b438358688849b Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 22 Jul 2018 17:58:29 -0700 Subject: [PATCH] Move example sketch to appropriately named folder The Arduino IDE requires the sketch folder name to match the filename of the primary sketch file. This change causes the example sketch to be accessible via the Arduino IDE's File > Examples > LIBRARYNAME menu after the library is installed. --- examples/{ => DHT22HelloWorld}/DHT22HelloWorld.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename examples/{ => DHT22HelloWorld}/DHT22HelloWorld.ino (91%) diff --git a/examples/DHT22HelloWorld.ino b/examples/DHT22HelloWorld/DHT22HelloWorld.ino similarity index 91% rename from examples/DHT22HelloWorld.ino rename to examples/DHT22HelloWorld/DHT22HelloWorld.ino index 09bc065..7d16854 100644 --- a/examples/DHT22HelloWorld.ino +++ b/examples/DHT22HelloWorld/DHT22HelloWorld.ino @@ -28,11 +28,11 @@ void loop() { /* * lastH() and lastT() will return cached values aquired during the last update * rel. Humidity is returned in percent, multiplied by 10 (50.4% would be 504) - * Temperature is returned in °C, multiplied by 10 (21.5°C would be 215) + * Temperature is returned in °C, multiplied by 10 (21.5°C would be 215) */ Serial.printf("RH: %i, T: %i \r\n", dht.lastH(), dht.lastT()); } else { Serial.println("Failed to read from sensor."); } -} \ No newline at end of file +}