-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLeds.h
42 lines (33 loc) · 987 Bytes
/
Leds.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Created by Matteo Favaro on 29/07/16.
//
#ifndef ARDUINO_MCWW_LEDS_H
#define ARDUINO_MCWW_LEDS_H
#include <Arduino.h>
typedef void (*CmdCallback)();
class Leds {
uint8_t const redLedPin_;
uint8_t const greenLedPin_;
uint8_t const whiteLedPin_;
int16_t const blinktime_; // in milliseconds
public:
Leds(uint8_t const redLedPin, uint8_t const greenLedPin, uint8_t const whiteLedPin, uint8_t const blinktime) ;
void ledRedOn() const;
void ledRedOff() const;
void ledGreenOn() const;
void ledGreenOff() const;
void ledWhiteOn() const;
void ledWhiteOff() const;
void ledAllblink() const;
void ledAllOff() const;
void ledRedBlink() const;
void ledRedLongBlink() const;
void ledRedThreeLongBlink() const;
void ledGreenBlink() const;
void ledGreenLongBlink() const;
void ledGreenThreeLongBlink() const;
void ledWhiteBlink() const;
void ledWhiteLongBlink() const;
void ledWhiteThreeLongBlink() const;
};
#endif //ARDUINO_MCWW_LEDS_H