set all colors to the same pin PE5
This commit is contained in:
parent
cead73a4d6
commit
ccaae9cd5c
2 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
@ -82,4 +82,4 @@ leds_arch_set(unsigned char leds)
|
||||||
LED_OUT |= BIT_RED;
|
LED_OUT |= BIT_RED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
#define LED_OUT PORTE
|
#define LED_OUT PORTE
|
||||||
|
|
||||||
#define BIT_GREEN _BV(PE2)
|
#define BIT_RED _BV(PE5)
|
||||||
#define BIT_YELLOW _BV(PE3)
|
#define BIT_BLUE BIT_RED
|
||||||
#define BIT_RED _BV(PE5)
|
#define BIT_GREEN BIT_RED
|
||||||
#define BIT_BLUE BIT_YELLOW
|
#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
|
||||||
|
@ -28,4 +28,4 @@ void leds_arch_init(void);
|
||||||
unsigned char leds_arch_get(void);
|
unsigned char leds_arch_get(void);
|
||||||
void leds_arch_set(unsigned char leds);
|
void leds_arch_set(unsigned char leds);
|
||||||
|
|
||||||
#endif /* __LEDS_ARCH_H__ */
|
#endif /* __LEDS_ARCH_H__ */
|
||||||
|
|
Loading…
Reference in a new issue