26 lines
409 B
C++
26 lines
409 B
C++
|
|
#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);
|
|
void clear();
|
|
};
|
|
|
|
#endif |