-
Notifications
You must be signed in to change notification settings - Fork 1
/
tiny_driver.hpp
31 lines (28 loc) · 1.1 KB
/
tiny_driver.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef tiny_driver_
#define tiny_driver_
#include <Arduino.h>
#include <SPI.h>
class tiny_driver
{
public:
tiny_driver(int xSize, int ySize, int orientation, int xOffset, int yOffset, int cs, int dc, int textScale, int bgr);
void InitDisplay();
void DisplayOn();
void ClearDisplay();
void MoveTo(int x = 0, int y = 0);
void PlotPoint(int x, int y);
void DrawTo(int x, int y);
void FillRect(int w, int h);
void PlotText(PGM_P p);
void PlotInt(int n);
void Color(int r, int g, int b);
void Color(int rgb);
void ChangeTextScale(int scale);
void ChangeTextBackground(int backColor);
void ShowText(int x, int y, const char *text, int textScale = 1);
void ShowInt(int x, int y, int integer, int textScale = 1);
void ShowImage(const unsigned int *image, int xLocation, int yLocation, int xSize, int ySize);
void ShowImageCompressed(const unsigned int *image, int xLocation, int yLocation, int xSize, int ySize);
void ShowImageCompressedOne(const unsigned int *image, int xLocation, int yLocation, int xSize, int ySize, int ColorCodeCompress);
};
#endif