how to control a servo with temp & humidity
Dependencies: DHT22 Servo mbed
Revision 6:14000499d474, committed 2016-05-28
- Comitter:
- Maggie17
- Date:
- Sat May 28 09:37:28 2016 +0000
- Parent:
- 5:86adb825bfd2
- Commit message:
- modify
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat May 28 09:33:39 2016 +0000
+++ b/main.cpp Sat May 28 09:37:28 2016 +0000
@@ -9,8 +9,8 @@
void fanFunction()
{
- // YOUR CODE HERE: read the sensor, set temp and hum variables
- myservo = !myservo;
+ // YOUR CODE HERE: to reverse myservo between 0 and 1
+
}
// this code runs when the microcontroller starts up