2017-02-20 13:55:16 -05:00
|
|
|
#ifndef __TEENSY_DISPLAY_H
|
|
|
|
#define __TEENSY_DISPLAY_H
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
2020-07-06 07:04:22 -04:00
|
|
|
#include <ILI9341_t3.h>
|
2017-02-28 08:15:11 -05:00
|
|
|
|
2020-07-06 16:46:14 -04:00
|
|
|
#include "physicaldisplay.h"
|
2017-02-20 13:55:16 -05:00
|
|
|
|
|
|
|
class UTFT;
|
|
|
|
class BIOS;
|
|
|
|
|
|
|
|
class TeensyDisplay : public PhysicalDisplay {
|
|
|
|
friend class BIOS;
|
|
|
|
|
|
|
|
public:
|
|
|
|
TeensyDisplay();
|
|
|
|
virtual ~TeensyDisplay();
|
|
|
|
|
2020-07-06 21:31:37 -04:00
|
|
|
virtual void blit();
|
2017-02-26 11:00:41 -05:00
|
|
|
virtual void blit(AiieRect r);
|
2017-02-20 13:55:16 -05:00
|
|
|
virtual void redraw();
|
|
|
|
|
2018-02-07 10:20:26 -05:00
|
|
|
virtual void clrScr();
|
2020-07-06 16:46:14 -04:00
|
|
|
virtual void flush();
|
2017-02-20 13:55:16 -05:00
|
|
|
|
|
|
|
virtual void drawCharacter(uint8_t mode, uint16_t x, uint8_t y, char c);
|
|
|
|
virtual void drawString(uint8_t mode, uint16_t x, uint8_t y, const char *str);
|
|
|
|
|
2018-01-07 14:43:17 -05:00
|
|
|
virtual void drawImageOfSizeAt(const uint8_t *img, uint16_t sizex, uint8_t sizey, uint16_t wherex, uint8_t wherey);
|
2017-02-20 13:55:16 -05:00
|
|
|
|
2018-02-17 20:44:04 -05:00
|
|
|
virtual void cacheDoubleWidePixel(uint16_t x, uint16_t y, uint8_t color);
|
|
|
|
virtual void cache2DoubleWidePixels(uint16_t x, uint16_t y, uint8_t colorA, uint8_t colorB);
|
|
|
|
virtual void cachePixel(uint16_t x, uint16_t y, uint8_t color);
|
|
|
|
|
2017-02-20 13:55:16 -05:00
|
|
|
private:
|
2018-01-07 14:43:17 -05:00
|
|
|
virtual void drawPixel(uint16_t x, uint16_t y, uint16_t color);
|
|
|
|
virtual void drawPixel(uint16_t x, uint16_t y, uint8_t r, uint8_t g, uint8_t b);
|
2018-02-17 20:44:04 -05:00
|
|
|
virtual void drawUIPixel(uint16_t x, uint16_t y, uint16_t color);
|
2017-02-20 13:55:16 -05:00
|
|
|
|
|
|
|
bool needsRedraw;
|
2017-02-26 20:25:47 -05:00
|
|
|
bool driveIndicator[2];
|
|
|
|
bool driveIndicatorDirty;
|
2017-02-20 13:55:16 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|