Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
8524e79feThis file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef GRAPH_H_
#define GRAPH_H_
#include "widget.h"
#include "display.h"
class Graph : public Widget {
public:
Graph(const int32_t *values, uint16_t num, uint16_t height, color_t color, const unit_t *unit);
void newColor(color_t color);
void newData(const int32_t *data);
private:
void draw(coords_t offset) override;
static constexpr color_t Background = COLOR_BG_DEFAULT;
static constexpr color_t Border = COLOR_FG_DEFAULT;
const int32_t *values;
color_t color;
const unit_t *unit;
};
#endif