11 pinMode(DIGITAL1 ,OUTPUT);
12 pinMode(DIGITAL2 ,OUTPUT);
21 digitalWrite(DIGITAL1, HIGH);
26 digitalWrite(DIGITAL1, LOW);
31 digitalWrite(DIGITAL2, HIGH);
36 digitalWrite(DIGITAL2, LOW);
67 for(uint8_t i = 0; i<4; i++)
83 else if(batLevel >=40)
85 for(uint8_t i = 0; i<5; i++)
95 for(uint8_t i = 0; i<5; i++)
void BlinkAkku(uint8_t batLevel)
This method sets the button led on or in blink state for 5 seconds (depending on battery level) (bloc...
void LedButtonBlinkOnce()
This method lets the led on the button blink once (blocks program for 300ms)
void LedButtonOff()
This method turns the led on the button off.
void init()
This method initializes the output pins for the leds and clears both led.
void LedButtonOn()
This method turns the led on the button on.
void LedGreenOn()
This method turns the green led on.
void LedGreenOff()
This method turns the green led off.
void LedGreenBlink4seconds()
This method lets the green led blink for 4 seconds (blocks program for 4s)
void LedGreenBlinkOnce()
This method lets the green led blink once (blocks program for 300ms)
void BothBlinkOnce()
This method lets both leds blink once (blocks program for 300ms)