LevelMeter-Display  2.0
An ultrasonic Level Meter for Stormwater Cisterns
led.h
Go to the documentation of this file.
1 
26 #ifndef LED_H_
27 #define LED_H_
28 
29 #define LEDPORT PORTA
30 #define LEDREDMASK 0b00010000
31 #define LEDYELLOWMASK 0b00100000
32 #define LEDGREENMASK 0b01000000
33 #define LEDBLUEMASK 0b10000000
34 
36 static inline void LEDRedOn(void)
37 {
38  LEDPORT &= ~LEDREDMASK;
39 }
40 
42 static inline void LEDRedOff(void)
43 {
45 }
46 
48 static inline void LEDYellowOn(void)
49 {
51 }
52 
54 static inline void LEDYellowOff(void)
55 {
57 }
58 
60 static inline void LEDGreenOn(void)
61 {
63 }
64 
66 static inline void LEDGreenOff(void)
67 {
69 }
70 
72 static inline void LEDBlueOn(void)
73 {
74  LEDPORT &= ~LEDBLUEMASK;
75 }
76 
78 static inline void LEDBlueOff(void)
79 {
81 }
82 
83 
84 
85 #endif /* LED_H_ */
static void LEDRedOff(void)
Switches the red LED off.
Definition: led.h:42
#define LEDGREENMASK
Definition: led.h:32
#define LEDREDMASK
Definition: led.h:30
static void LEDGreenOff(void)
Switches the green LED off.
Definition: led.h:66
#define LEDYELLOWMASK
Definition: led.h:31
static void LEDYellowOn(void)
Switches the yellow LED on.
Definition: led.h:48
#define LEDBLUEMASK
Definition: led.h:33
static void LEDRedOn(void)
Switches the red LED on.
Definition: led.h:36
static void LEDGreenOn(void)
Switches the green LED on.
Definition: led.h:60
static void LEDYellowOff(void)
Switches the yellow LED off.
Definition: led.h:54
#define LEDPORT
Definition: led.h:29
static void LEDBlueOn(void)
Switches the blue LED on.
Definition: led.h:72
static void LEDBlueOff(void)
Switches the blue LED off.
Definition: led.h:78