Rock Monitoring  V 1.0
Leds Class Reference

Class that handles the Leds. More...

#include <Leds.h>

Collaboration diagram for Leds:
Collaboration graph

Public Member Functions

 Leds ()
 
void init ()
 This method initializes the output pins for the leds and clears both led. More...
 
void LedGreenOn ()
 This method turns the green led on. More...
 
void LedGreenOff ()
 This method turns the green led off. More...
 
void LedButtonOn ()
 This method turns the led on the button on. More...
 
void LedButtonOff ()
 This method turns the led on the button off. More...
 
void LedGreenBlinkOnce ()
 This method lets the green led blink once (blocks program for 300ms) More...
 
void LedButtonBlinkOnce ()
 This method lets the led on the button blink once (blocks program for 300ms) More...
 
void BothBlinkOnce ()
 This method lets both leds blink once (blocks program for 300ms) More...
 
void LedGreenBlink4seconds ()
 This method lets the green led blink for 4 seconds (blocks program for 4s) More...
 
void BlinkAkku (uint8_t batLevel)
 This method sets the button led on or in blink state for 5 seconds (depending on battery level) (blocks program for 5s) More...
 

Detailed Description

Class that handles the Leds.

Definition at line 12 of file Leds.h.

Constructor & Destructor Documentation

Leds::Leds ( )

Definition at line 5 of file Leds.cpp.

Member Function Documentation

void Leds::BlinkAkku ( uint8_t  batLevel)

This method sets the button led on or in blink state for 5 seconds (depending on battery level) (blocks program for 5s)

Parameters
uint8_tbatLevel, battery level

Definition at line 75 of file Leds.cpp.

void Leds::BothBlinkOnce ( )

This method lets both leds blink once (blocks program for 300ms)

Definition at line 54 of file Leds.cpp.

void Leds::init ( void  )

This method initializes the output pins for the leds and clears both led.

Definition at line 9 of file Leds.cpp.

void Leds::LedButtonBlinkOnce ( )

This method lets the led on the button blink once (blocks program for 300ms)

Definition at line 47 of file Leds.cpp.

void Leds::LedButtonOff ( )

This method turns the led on the button off.

Definition at line 34 of file Leds.cpp.

void Leds::LedButtonOn ( )

This method turns the led on the button on.

Definition at line 29 of file Leds.cpp.

void Leds::LedGreenBlink4seconds ( )

This method lets the green led blink for 4 seconds (blocks program for 4s)

Definition at line 64 of file Leds.cpp.

void Leds::LedGreenBlinkOnce ( )

This method lets the green led blink once (blocks program for 300ms)

Definition at line 40 of file Leds.cpp.

void Leds::LedGreenOff ( )

This method turns the green led off.

Definition at line 24 of file Leds.cpp.

void Leds::LedGreenOn ( )

This method turns the green led on.

Definition at line 19 of file Leds.cpp.


The documentation for this class was generated from the following files: