first commit
This commit is contained in:
34
ESP32_DOMOTICZ_ECRAN/Graph.cpp
Normal file
34
ESP32_DOMOTICZ_ECRAN/Graph.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "Graph.h"
|
||||
|
||||
Graph::Graph(Ecran * _ecran, int _x0, int _y0 ,int _x1, int _y1)
|
||||
{
|
||||
// printf("--------------------------------------");
|
||||
// printf("Init Graph");
|
||||
x0 = _x0;
|
||||
x1 = _x1;
|
||||
y0 = _y0;
|
||||
y1 = _y1;
|
||||
ecran = _ecran;
|
||||
}
|
||||
|
||||
void Graph::drawAxes()
|
||||
{
|
||||
// ecran->u8g2->drawLine(x0 + 5, y0 + 5, x1, y0 + 5);
|
||||
// ecran->u8g2->drawLine(x0 + 5, y0 + 5, x0 + 5, y1);
|
||||
}
|
||||
void Graph::drawTitle()
|
||||
{
|
||||
if (title != "") {
|
||||
ecran->LcdString(x0, y0, title, WHITE, BLACK);
|
||||
}
|
||||
}
|
||||
void Graph::drawDatas()
|
||||
{
|
||||
|
||||
}
|
||||
void Graph::drawGraph()
|
||||
{
|
||||
drawAxes();
|
||||
drawTitle();
|
||||
drawDatas();
|
||||
}
|
||||
Reference in New Issue
Block a user