Display scan results received over LoRa

This commit is contained in:
Sassa NF
2025-01-04 17:14:20 +00:00
parent a2076c7a36
commit ed976d1b38
3 changed files with 65 additions and 0 deletions
+10
View File
@@ -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)