Added reading storage for text and current position, ability to copy from SD Card.
This commit is contained in:
@@ -1749,6 +1749,13 @@ void EPD_clearStringRect(int x, int y, char *str)
|
||||
EPD_fillRect(x+dispWin.x1, y+dispWin.y1, w, h, _bg);
|
||||
}
|
||||
|
||||
void EPD_frameStringRect(int x, int y, char *str)
|
||||
{
|
||||
int w = EPD_getStringWidth(str);
|
||||
int h = EPD_getfontheight();
|
||||
EPD_drawRect(x+dispWin.x1, y+dispWin.y1, w, h, _fg);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
* bit-encoded bar position of all digits' bcd segments
|
||||
|
||||
@@ -529,6 +529,10 @@ int EPD_getStringWidth(char* str);
|
||||
*/
|
||||
void EPD_clearStringRect(int x, int y, char *str);
|
||||
|
||||
/*
|
||||
* Frames the rectangle occupied by string with current foreground color
|
||||
*/
|
||||
void EPD_frameStringRect(int x, int y, char *str);
|
||||
|
||||
/*
|
||||
* Compile font c source file to .fnt file
|
||||
|
||||
Reference in New Issue
Block a user