init
This commit is contained in:
25
esp32_readout/display.h
Normal file
25
esp32_readout/display.h
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#ifndef DISPLAY_DEF
|
||||
#define DISPLAY_DEF
|
||||
|
||||
#include <Adafruit_GFX.h>
|
||||
#include <Adafruit_SharpMem.h>
|
||||
#include <string>
|
||||
|
||||
#include "env.h"
|
||||
|
||||
class Display {
|
||||
private:
|
||||
Adafruit_SharpMem* _display;
|
||||
|
||||
int mid_x;
|
||||
int mid_y;
|
||||
|
||||
public:
|
||||
Display();
|
||||
void setup();
|
||||
void print(const char* text);
|
||||
void print_weight(double weight);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user