- Timestamp:
- Oct 23, 2016, 8:29:46 PM (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/examples/Milkcocoa_NCESIoT/r2ca_app.cpp
r255 r260 1 #include "r ca.h"1 #include "r2ca.h" 2 2 #include "ESP8266.h" 3 3 #include "Milkcocoa.h" … … 22 22 23 23 extern void onpush(DataElement *elem); 24 25 bool setup_done = false;26 24 27 25 void setup() … … 91 89 myservo.attach(2); 92 90 93 setup_done = true;94 91 Serial.println("setup end\r\n"); 95 92 } … … 147 144 148 145 149 /* 150 * For TASK1 151 */ 152 void task1_setup() { 153 while(!setup_done) { 154 delay(1); 155 } 156 Serial.println("Servo Task : start"); 157 } 158 159 void task1_loop() { 146 void loop1() { 160 147 int8_t ret; 161 148 while((ret = milkcocoa.loop(1)) != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.