mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-08-10 10:52:56 +02:00
Display scan results received over LoRa
This commit is contained in:
@@ -18,6 +18,16 @@ void BarChart::reset(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
|
||||
Chart::reset(x, y, w, h);
|
||||
}
|
||||
|
||||
void BarChart::clear()
|
||||
{
|
||||
for (int i = 0; i < width; i++)
|
||||
{
|
||||
ys[i] = min_y;
|
||||
}
|
||||
|
||||
redraw_all = true;
|
||||
}
|
||||
|
||||
int BarChart::updatePoint(float x, float y)
|
||||
{
|
||||
if (x < min_x || x >= max_x)
|
||||
|
||||
@@ -81,6 +81,7 @@ struct BarChart : ProgressChart, Listener
|
||||
};
|
||||
|
||||
void reset(uint16_t x, uint16_t y, uint16_t w, uint16_t h) override;
|
||||
void clear();
|
||||
int updatePoint(float x, float y) override;
|
||||
void drawOne(int x) override;
|
||||
void draw() override;
|
||||
|
||||
Reference in New Issue
Block a user