Ignore:
Timestamp:
Jun 20, 2016, 4:57:50 PM (8 years ago)
Author:
ertl-honda
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/examples/MultiTaskText/SingleTask/rca_app.cpp

    r244 r245  
    11#include "rca.h"
    22
    3 //#define LED_BLINK
    4 //#define CRGB_LED
     3#define LED_BLINK
     4//#define CLED_BLINK
    55//#define TOUCH_SENSE
    6 #define DLIGHT_READ
     6//#define LUX_SENSE
    77
    88#include <Wire.h>
     
    2929#endif /* LED_BLINK */
    3030
    31 #ifdef CRGB_LED
     31#ifdef CLED_BLINK
    3232
    3333#define NUM_LEDS 1
     
    4444    delay(10);
    4545  }
    46   for(i = 25; i > 0; i--){
    47     leds.setColorRGB(0, i*10, 0, 0);
    48     delay(10);
    49   } 
    5046  for(i = 0; i < 25; i++){
    5147    leds.setColorRGB(0, 0, i*10, 0);
    5248    delay(10);
    5349  }
    54   for(i = 25; i > 0; i--){
    55     leds.setColorRGB(0, 0, i*10, 0);
    56     delay(10);
    57   }   
    5850  for(i = 0; i < 25; i++){
    5951    leds.setColorRGB(0, 0, 0, i*10);
    6052    delay(10);
    6153  }
    62   for(i = 25; i > 0; i--){
    63     leds.setColorRGB(0, 0, 0, i*10);
    64     delay(10);
    65   }   
    6654}
    67 #endif /* CRGB_LED */
     55#endif /* CLED_BLINK */
    6856
    6957#ifdef TOUCH_SENSE
     
    10391
    10492
    105 #ifdef DLIGHT_READ
     93#ifdef LUX_SENSE
    10694void setup() {
    10795  Wire.begin();
     
    130118  SeeedOled.putNumber(OLEDCount++);
    131119}
    132 #endif /* DLIGHT_READ */
     120#endif /* LUX_SENSE */
Note: See TracChangeset for help on using the changeset viewer.