- Timestamp:
- Jun 20, 2016, 4:57:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/examples/MultiTaskText/SingleTask/rca_app.cpp
r244 r245 1 1 #include "rca.h" 2 2 3 //#define LED_BLINK4 //#define C RGB_LED3 #define LED_BLINK 4 //#define CLED_BLINK 5 5 //#define TOUCH_SENSE 6 #define DLIGHT_READ 6 //#define LUX_SENSE 7 7 8 8 #include <Wire.h> … … 29 29 #endif /* LED_BLINK */ 30 30 31 #ifdef C RGB_LED31 #ifdef CLED_BLINK 32 32 33 33 #define NUM_LEDS 1 … … 44 44 delay(10); 45 45 } 46 for(i = 25; i > 0; i--){47 leds.setColorRGB(0, i*10, 0, 0);48 delay(10);49 }50 46 for(i = 0; i < 25; i++){ 51 47 leds.setColorRGB(0, 0, i*10, 0); 52 48 delay(10); 53 49 } 54 for(i = 25; i > 0; i--){55 leds.setColorRGB(0, 0, i*10, 0);56 delay(10);57 }58 50 for(i = 0; i < 25; i++){ 59 51 leds.setColorRGB(0, 0, 0, i*10); 60 52 delay(10); 61 53 } 62 for(i = 25; i > 0; i--){63 leds.setColorRGB(0, 0, 0, i*10);64 delay(10);65 }66 54 } 67 #endif /* C RGB_LED*/55 #endif /* CLED_BLINK */ 68 56 69 57 #ifdef TOUCH_SENSE … … 103 91 104 92 105 #ifdef DLIGHT_READ93 #ifdef LUX_SENSE 106 94 void setup() { 107 95 Wire.begin(); … … 130 118 SeeedOled.putNumber(OLEDCount++); 131 119 } 132 #endif /* DLIGHT_READ*/120 #endif /* LUX_SENSE */
Note:
See TracChangeset
for help on using the changeset viewer.