Added reading storage for text and current position, ability to copy from SD Card.

This commit is contained in:
dejvino
2020-02-03 07:32:47 +01:00
parent af712d9124
commit 37a48bf3b5
14 changed files with 230 additions and 22 deletions
+7
View File
@@ -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
+4
View File
@@ -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