RBControl
Library for the RB3201-RBControl board with the ESP32 by RoboticsBrno.
RBControl_leds.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Adafruit_MCP23017.h"
4 
5 namespace rb {
6 
10 class Leds {
11  friend class Manager;
12 
13 public:
14  void red(bool on = true);
15  void yellow(bool on = true);
16  void green(bool on = true);
17  void blue(bool on = true);
18 
19 private:
20  Leds(Adafruit_MCP23017& expander);
21  Leds(const Leds&) = delete;
22  ~Leds();
23 
24  Adafruit_MCP23017& m_expander;
25 };
26 };
Controls the expander pins.
Definition: Adafruit_MCP23017.h:24
Helper class for controlling the LEDs connected to the expander.
Definition: RBControl_leds.hpp:10
void red(bool on=true)
Set the red LED state.
Definition: RBControl_leds.cpp:17
void green(bool on=true)
Set the green LED state.
Definition: RBControl_leds.cpp:25
void yellow(bool on=true)
Set the yellow LED state.
Definition: RBControl_leds.cpp:21
void blue(bool on=true)
Set the blue LED state.
Definition: RBControl_leds.cpp:29
The main library class for working with the RBControl board. Call the install() method at the start o...
Definition: RBControl_manager.hpp:49
The base namespace. Contains some logging functions, too.
Definition: half_duplex_uart.cpp:53