Changeset 260 for rtos_arduino/trunk/examples/NCESIoT/r2ca_app.cpp
- Timestamp:
- Oct 23, 2016, 8:29:46 PM (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/examples/NCESIoT/r2ca_app.cpp
r258 r260 1 #include "r ca.h"1 #include "r2ca.h" 2 2 3 3 #define SERVO 4 4 //#define ULTRASONIC 5 5 //#define LCD_ULTRASONIC 6 //#define LCD_ULTRASONIC_SERVO /* define R CA_NUM_TASK as 1 */6 //#define LCD_ULTRASONIC_SERVO /* define R2CA_NUM_TASK as 1 */ 7 7 8 8 #ifdef SERVO … … 91 91 Ultrasonic ultrasonic(3); 92 92 93 extern void task1_setup(); 94 93 95 void setup() 94 96 { … … 102 104 Serial.println(" cm"); 103 105 delay(250); 106 107 task1_setup(); 104 108 } 105 109 … … 188 192 } 189 193 190 void task1_loop()194 void loop1() 191 195 { 192 196 for(pos = 0; pos <= 180; pos += 1) // goes from 0 degrees to 180 degrees
Note:
See TracChangeset
for help on using the changeset viewer.