22 const char* m_tag =
"StatusBar";
24 SmartLed m_statusLeds;
26 mutable std::mutex m_mutex;
28 static constexpr int s_count = 5;
33 StatusBar(Rgb
color = Rgb(255, 255, 255),
int count = 5,
int i_channel = 1);
35 std::array<Rgb, 5> m_frame;
105 void show(
int intensity = 255);
112 void ukaz(
int intenzita = 255) {
show(intenzita); }
States
Definition: StatusBar.hpp:8
@ B
Definition: StatusBar.hpp:10
@ A
Definition: StatusBar.hpp:9
@ C
Definition: StatusBar.hpp:11
@ D
Definition: StatusBar.hpp:12
@ E
Definition: StatusBar.hpp:13
Definition: StatusBar.hpp:18
Rgb & operator[](int i_index)
Definition: StatusBar.cpp:53
StatusBar & operator=(StatusBar &&)=delete
void vycisti()
Vyčistí celý displej.
Definition: StatusBar.hpp:122
Rgb barva() const
Vrátí aktuální barvu stavového řádku.
Definition: StatusBar.hpp:98
void ukaz(int intenzita=255)
Vykreslí aktuální snímek/stav.
Definition: StatusBar.hpp:112
StatusBar(StatusBar &)=delete
void setState(int state)
Set progress.
Definition: StatusBar.cpp:12
StatusBar(StatusBar &&)=delete
Rgb color() const
Returns current color of status bar.
Definition: StatusBar.cpp:23
void show(int intensity=255)
Show current frame/state.
Definition: StatusBar.cpp:31
Rgb & pozice(int x)
Vrátí pixel na dané pozici.
Definition: StatusBar.hpp:138
void nastavBarvu(Rgb barva)
Nastaví barvu stavové řádky.
Definition: StatusBar.hpp:84
StatusBar & operator=(StatusBar &)=delete
void nastavStav(int stav)
Nastaví stav.
Definition: StatusBar.hpp:56
int stav() const
Vrátí aktuálně nastavený stav.
Definition: StatusBar.hpp:70
Rgb & at(int x)
Return pixel at given position.
Definition: StatusBar.cpp:48
void clear()
Clear the display.
Definition: StatusBar.cpp:43
void setColor(Rgb color)
Set the color of status bar.
Definition: StatusBar.cpp:27
int state() const
Returns current state.
Definition: StatusBar.cpp:19