set all colors to the same pin PE5

This commit is contained in:
Harald Pichler 2014-07-15 08:20:46 +02:00
parent 42d3b38c9c
commit 5f18fc6955
2 changed files with 7 additions and 7 deletions

View file

@ -50,7 +50,7 @@
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();
}
/*---------------------------------------------------------------------------*/
@ -82,4 +82,4 @@ leds_arch_set(unsigned char leds)
LED_OUT |= BIT_RED;
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

View file

@ -3,10 +3,10 @@
#define LED_OUT PORTE
#define BIT_GREEN _BV(PE2)
#define BIT_YELLOW _BV(PE3)
#define BIT_RED _BV(PE5)
#define BIT_BLUE BIT_YELLOW
#define BIT_RED _BV(PE5)
#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_OFF() LED_OUT |= BIT_GREEN
@ -28,4 +28,4 @@ void leds_arch_init(void);
unsigned char leds_arch_get(void);
void leds_arch_set(unsigned char leds);
#endif /* __LEDS_ARCH_H__ */
#endif /* __LEDS_ARCH_H__ */