TeensyNanoExoCode
Loading...
Searching...
No Matches
ComsLed.h
Go to the documentation of this file.
1
8#ifndef ComsLed_h
9#define ComsLed_h
10
11#if defined(ARDUINO_ARDUINO_NANO33BLE) | defined(ARDUINO_NANO_RP2040_CONNECT)
12
13#include "Arduino.h"
14
15class ComsLed
16{
17 public:
23 static ComsLed* get_instance();
24
25
33 void set_color(uint8_t r, uint8_t g, uint8_t b);
34
39 void get_color(uint8_t* r, uint8_t* g, uint8_t* b);
40
41 private:
46 ComsLed();
47
54 uint8_t _handle_active_low(uint8_t value);
55
56
61 uint8_t r;
62
67 uint8_t g;
68
73 uint8_t b;
74};
75
76#endif
77#endif