Class LEDPanel
Defined in File led_panel.hpp
Class Documentation
-
class LEDPanel
Class that represents LED panel of the robot.
Public Functions
-
LEDPanel(const std::size_t num_led)
-
~LEDPanel() = default
-
void UpdateFrame(const std::size_t iterator_first, const std::vector<std::uint8_t> &values)
Updates LED panel frame.
- Parameters:
iterator_first – position at which values will be inserted
values – vector with values that will be inserted into the frame
- Throws:
std::runtime_error – if values vector is empty or can’t be fit into the farme
-
inline std::vector<std::uint8_t> GetFrame() const
-
inline std::size_t GetNumberOfLeds() const
-
LEDPanel(const std::size_t num_led)