Tweaked code ui, fixed home after code
This commit is contained in:
parent
c41db33f01
commit
1cb5f8bc89
@ -51,8 +51,8 @@ void code(UWORD *blackImage, char* confName) {
|
|||||||
GoString confStr = {confName, strlen(confName)};
|
GoString confStr = {confName, strlen(confName)};
|
||||||
const char *code = getCode(confStr);
|
const char *code = getCode(confStr);
|
||||||
DebugLine(3, 0, "Code: %s\n", code);
|
DebugLine(3, 0, "Code: %s\n", code);
|
||||||
Paint_DrawString(5, 5, code, &Font36, WHITE, BLACK);
|
Paint_DrawString(5, 20, code, &Font36, WHITE, BLACK);
|
||||||
Paint_DrawString(5, 84, confName, &Font12, WHITE, BLACK);
|
Paint_DrawString(5, 5, confName, &Font12, WHITE, BLACK);
|
||||||
|
|
||||||
Paint_DrawRectangle(10, 114, 240, 94, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY);
|
Paint_DrawRectangle(10, 114, 240, 94, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY);
|
||||||
EPD_2in13_V4_Display_Base(blackImage);
|
EPD_2in13_V4_Display_Base(blackImage);
|
||||||
@ -130,6 +130,7 @@ void home(UWORD *blackImage) {
|
|||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
Paint_DrawString(115, 5 + (i * 20), "<", &Font12, WHITE, BLACK);
|
Paint_DrawString(115, 5 + (i * 20), "<", &Font12, WHITE, BLACK);
|
||||||
|
EPD_2in13_V4_Display_Partial(blackImage);
|
||||||
|
|
||||||
int ch;
|
int ch;
|
||||||
while (1) {
|
while (1) {
|
||||||
@ -156,7 +157,7 @@ void home(UWORD *blackImage) {
|
|||||||
if (configNames[j] == NULL) {
|
if (configNames[j] == NULL) {
|
||||||
DebugLine(13, 0, "Null Config: %d\n", j);
|
DebugLine(13, 0, "Null Config: %d\n", j);
|
||||||
}
|
}
|
||||||
Paint_DrawString(5, 5 + (i * 20), configNames[i], &Font12, WHITE, BLACK);
|
Paint_DrawString(5, 5 + j * 20, configNames[j], &Font12, WHITE, BLACK);
|
||||||
}
|
}
|
||||||
EPD_2in13_V4_Display_Base(blackImage);
|
EPD_2in13_V4_Display_Base(blackImage);
|
||||||
Paint_NewImage(blackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 0, WHITE);
|
Paint_NewImage(blackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 0, WHITE);
|
||||||
|
Loading…
Reference in New Issue
Block a user