Rock Monitoring  V 1.0
Leds.h
Go to the documentation of this file.
1 #ifndef Leds_H
2 #define Leds_H
3 #include "WaspUSB.h"
4 #include <stdio.h>
5 #include "WaspPWR.h"
6 #include "WaspRTC.h"
7 #include <inttypes.h>
8 #include "printable.h"
9 #include "Waspmote.h"
10 #include "../Constants/Constants.h"
11 
12 class Leds
13 {
14 public:
15 //methods
16  Leds();
17  void init(); //initializes Led GPIOs
18 
19  void LedGreenOn(); //Turns the green led on
20  void LedGreenOff(); //Turns the green led off
21  void LedButtonOn(); //Turns the led in the button on
22  void LedButtonOff(); //Turns the led in the button off
23 
24  void LedGreenBlinkOnce(); //lets the green led blink once (blocks program for 300ms)
25  void LedButtonBlinkOnce(); //ets the led on the button blink once (blocks program for 300ms)
26  void BothBlinkOnce(); //lets both leds blink once (blocks program for 300ms)
27  void LedGreenBlink4seconds(); //the green Led blinks for 4 seconds (blocks program for 4 seconds)
28  void BlinkAkku(uint8_t batLevel);//sets the button led on or in blink state for 5 seconds (depending on battery level) (blocks program for 5 seconds)
29 
30 };
31 
32 #endif // Leds_H
void BlinkAkku(uint8_t batLevel)
This method sets the button led on or in blink state for 5 seconds (depending on battery level) (bloc...
Definition: Leds.cpp:75
void LedButtonBlinkOnce()
This method lets the led on the button blink once (blocks program for 300ms)
Definition: Leds.cpp:47
Class that handles the Leds.
Definition: Leds.h:12
void LedButtonOff()
This method turns the led on the button off.
Definition: Leds.cpp:34
void init()
This method initializes the output pins for the leds and clears both led.
Definition: Leds.cpp:9
void LedButtonOn()
This method turns the led on the button on.
Definition: Leds.cpp:29
void LedGreenOn()
This method turns the green led on.
Definition: Leds.cpp:19
void LedGreenOff()
This method turns the green led off.
Definition: Leds.cpp:24
Leds()
Definition: Leds.cpp:5
void LedGreenBlink4seconds()
This method lets the green led blink for 4 seconds (blocks program for 4s)
Definition: Leds.cpp:64
void LedGreenBlinkOnce()
This method lets the green led blink once (blocks program for 300ms)
Definition: Leds.cpp:40
void BothBlinkOnce()
This method lets both leds blink once (blocks program for 300ms)
Definition: Leds.cpp:54