set all colors to the same pin PE5

This commit is contained in:
harald 2014-07-15 08:20:46 +02:00
parent cead73a4d6
commit ccaae9cd5c
2 changed files with 7 additions and 7 deletions

View file

@ -50,7 +50,7 @@
void void
leds_arch_init(void) leds_arch_init(void)
{ {
DDRE|=(1<<DDE2) | (1<<DDE3) | (1<<DDE5); // Set pins as output since leds are mounted on the VDD bus DDRE|=(1<<DDE5); // Set pins as output since leds are mounted on the VDD bus
LEDS_OFF(); LEDS_OFF();
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/

View file

@ -3,10 +3,10 @@
#define LED_OUT PORTE #define LED_OUT PORTE
#define BIT_GREEN _BV(PE2)
#define BIT_YELLOW _BV(PE3)
#define BIT_RED _BV(PE5) #define BIT_RED _BV(PE5)
#define BIT_BLUE BIT_YELLOW #define BIT_BLUE BIT_RED
#define BIT_GREEN BIT_RED
#define BIT_YELLOW BIT_RED
#define LED_GREEN_ON() LED_OUT &= ~BIT_GREEN #define LED_GREEN_ON() LED_OUT &= ~BIT_GREEN
#define LED_GREEN_OFF() LED_OUT |= BIT_GREEN #define LED_GREEN_OFF() LED_OUT |= BIT_GREEN