示例#1
0
void setupLED(){
    pinMode(blueLED, OUTPUT);
  pinMode(redLED, OUTPUT);
  pinMode (greenLED, OUTPUT);
  pinMode (irLED, OUTPUT);
  LEDsOff();
}
示例#2
0
void StatusBlinkRed(uint8_t count) {
  uint8_t i;
  LEDsOff();
  for (i = 0; i < count; i++) {
    SetLED(0, 128, 0, 0);
    UpdateLEDs();
    _delay_ms(10);
    SetLED(0, 0, 0, 0);
    UpdateLEDs();
    _delay_ms(30);
  }
}