LevelMeter-Display  2.0
An ultrasonic Level Meter for Stormwater Cisterns
Macros | Functions
led.h File Reference

Provides inline Functions for controlling the LEDs. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LEDBLUEMASK   0b10000000
 
#define LEDGREENMASK   0b01000000
 
#define LEDPORT   PORTA
 
#define LEDREDMASK   0b00010000
 
#define LEDYELLOWMASK   0b00100000
 

Functions

static void LEDBlueOff (void)
 Switches the blue LED off. More...
 
static void LEDBlueOn (void)
 Switches the blue LED on. More...
 
static void LEDGreenOff (void)
 Switches the green LED off. More...
 
static void LEDGreenOn (void)
 Switches the green LED on. More...
 
static void LEDRedOff (void)
 Switches the red LED off. More...
 
static void LEDRedOn (void)
 Switches the red LED on. More...
 
static void LEDYellowOff (void)
 Switches the yellow LED off. More...
 
static void LEDYellowOn (void)
 Switches the yellow LED on. More...
 

Detailed Description

Provides inline Functions for controlling the LEDs.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Current LED usage:

REDOn during ADC Interrupt
YELLOWOn during timer0 interrupt
GREENOn during Sleep in the main loop. A bright green LED means we have reserves in computing time!
BLUEMirror of the DCF77 receive signal. Helpfull for placing and orienting the receiver.

Macro Definition Documentation

◆ LEDBLUEMASK

#define LEDBLUEMASK   0b10000000

◆ LEDGREENMASK

#define LEDGREENMASK   0b01000000

◆ LEDPORT

#define LEDPORT   PORTA

◆ LEDREDMASK

#define LEDREDMASK   0b00010000

◆ LEDYELLOWMASK

#define LEDYELLOWMASK   0b00100000

Function Documentation

◆ LEDBlueOff()

static void LEDBlueOff ( void  )
inlinestatic

Switches the blue LED off.

References LEDBLUEMASK, and LEDPORT.

Referenced by FTest(), and GetPinState().

Here is the caller graph for this function:

◆ LEDBlueOn()

static void LEDBlueOn ( void  )
inlinestatic

Switches the blue LED on.

References LEDBLUEMASK, and LEDPORT.

Referenced by FTest(), and GetPinState().

Here is the caller graph for this function:

◆ LEDGreenOff()

static void LEDGreenOff ( void  )
inlinestatic

Switches the green LED off.

References LEDGREENMASK, and LEDPORT.

Referenced by FTest(), and main().

Here is the caller graph for this function:

◆ LEDGreenOn()

static void LEDGreenOn ( void  )
inlinestatic

Switches the green LED on.

References LEDGREENMASK, and LEDPORT.

Referenced by FTest(), and main().

Here is the caller graph for this function:

◆ LEDRedOff()

static void LEDRedOff ( void  )
inlinestatic

Switches the red LED off.

References LEDPORT, and LEDREDMASK.

Referenced by FTest(), and ISR().

Here is the caller graph for this function:

◆ LEDRedOn()

static void LEDRedOn ( void  )
inlinestatic

Switches the red LED on.

References LEDPORT, and LEDREDMASK.

Referenced by FTest(), and ISR().

Here is the caller graph for this function:

◆ LEDYellowOff()

static void LEDYellowOff ( void  )
inlinestatic

Switches the yellow LED off.

References LEDPORT, and LEDYELLOWMASK.

Referenced by FTest(), and ISR().

Here is the caller graph for this function:

◆ LEDYellowOn()

static void LEDYellowOn ( void  )
inlinestatic

Switches the yellow LED on.

References LEDPORT, and LEDYELLOWMASK.

Referenced by FTest(), and ISR().

Here is the caller graph for this function: