dht11/dht11.c

changeset 35
f3c5ae78b746
parent 31
89dd2b691701
child 51
a03b6dac5398
--- a/dht11/dht11.c	Mon May 12 19:45:11 2014 +0200
+++ b/dht11/dht11.c	Tue May 13 16:33:47 2014 +0200
@@ -36,7 +36,7 @@
     if (wiringPiSetup() == -1)
 	return 0;
 
-    dht11Init(PIN, 0, 6);
+    dht11Init(PIN, 1, 6);
     dht11Read();
     if (dht11_valid) {
 	fprintf(stdout, "DHT11: temperature %d degrees, humidity %d%%\n", dht11_temperature, dht11_humidity);

mercurial