Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MQ2 FXOS8700Q DHT TextLCD ESP8266
Revision 1:402b14b56d24, committed 2016-11-29
- Comitter:
- siddharthp
- Date:
- Tue Nov 29 14:01:15 2016 +0000
- Parent:
- 0:da7e87322045
- Child:
- 2:9c7b37890692
- Commit message:
- DHT11 temperature and Humidity sensor
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Nov 29 13:56:18 2016 +0000
+++ b/main.cpp Tue Nov 29 14:01:15 2016 +0000
@@ -25,15 +25,14 @@
pc.printf("Getting IP\r\n"); //get IP addresss from the connected AP
wifi.GetIP(rcv); //receive an IP address from the AP
pc.printf("%s\n", rcv);
- wait(5); // Delay 5 sec to give the pir time to get snapshut of the surrounding
while (1)
{
pc.printf("PLEASE STAY AWAY\r\n");
pc.printf("Sending WiFi information\n");
wifi_send();
- RED=1; // when the motion detected turn of the on board red led
+ RED=1;
wait(2.0f);
- RED=1;
+ RED=0;
wait(1.5f);
}
}