mirror of
https://github.com/jscrane/r65emu.git
synced 2025-01-02 13:30:53 +00:00
minor updates
This commit is contained in:
parent
5e5116229b
commit
8d28a52708
@ -30,8 +30,6 @@ bool hardware_reset() {
|
|||||||
digitalWrite(TFT_BACKLIGHT, HIGH);
|
digitalWrite(TFT_BACKLIGHT, HIGH);
|
||||||
#endif
|
#endif
|
||||||
utft.InitLCD();
|
utft.InitLCD();
|
||||||
extern uint8_t SmallFont[];
|
|
||||||
utft.setFont(SmallFont);
|
|
||||||
|
|
||||||
_cpu->reset();
|
_cpu->reset();
|
||||||
return sd;
|
return sd;
|
||||||
|
@ -6,6 +6,13 @@ public:
|
|||||||
virtual void up(byte) = 0;
|
virtual void up(byte) = 0;
|
||||||
virtual void down(byte) = 0;
|
virtual void down(byte) = 0;
|
||||||
virtual void reset() = 0;
|
virtual void reset() = 0;
|
||||||
|
|
||||||
|
inline bool isshift(byte scan) {
|
||||||
|
return scan == 0x12 || scan == 0x59;
|
||||||
|
}
|
||||||
|
inline bool isctrl(byte scan) {
|
||||||
|
return scan == 0x14;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -5,11 +5,14 @@
|
|||||||
|
|
||||||
extern UTFT utft;
|
extern UTFT utft;
|
||||||
|
|
||||||
void UTFTDisplay::begin(unsigned bg, unsigned fg) {
|
void UTFTDisplay::begin(unsigned bg, unsigned fg, uint8_t *font) {
|
||||||
_bg = bg;
|
_bg = bg;
|
||||||
_fg = fg;
|
_fg = fg;
|
||||||
_dx = utft.getDisplayXSize();
|
_dx = utft.getDisplayXSize();
|
||||||
_dy = utft.getDisplayYSize();
|
_dy = utft.getDisplayYSize();
|
||||||
|
|
||||||
|
utft.setFont(font);
|
||||||
|
utft.setColor(fg);
|
||||||
_cx = utft.getFontXsize();
|
_cx = utft.getFontXsize();
|
||||||
_cy = utft.getFontYsize();
|
_cy = utft.getFontYsize();
|
||||||
_oxs = _dx;
|
_oxs = _dx;
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
#define __UTFT_DISPLAY_H__
|
#define __UTFT_DISPLAY_H__
|
||||||
|
|
||||||
class Stream;
|
class Stream;
|
||||||
|
extern uint8_t SmallFont[];
|
||||||
|
|
||||||
class UTFTDisplay: public Memory::Device {
|
class UTFTDisplay: public Memory::Device {
|
||||||
public:
|
public:
|
||||||
void begin(unsigned bg, unsigned fg);
|
void begin(unsigned bg, unsigned fg, uint8_t *font = SmallFont);
|
||||||
void clear();
|
void clear();
|
||||||
void error(char *);
|
void error(char *);
|
||||||
void status(const char *);
|
void status(const char *);
|
||||||
|
Loading…
Reference in New Issue
Block a user