Twekn it
This commit is contained in:
parent
2565bdb766
commit
c41db33f01
14
c/src/p2fa.c
14
c/src/p2fa.c
@ -75,13 +75,13 @@ void code(UWORD *blackImage, char* confName) {
|
|||||||
startTime = clock();
|
startTime = clock();
|
||||||
|
|
||||||
DebugLine(4, 0, "Time Left: %d\n", i);
|
DebugLine(4, 0, "Time Left: %d\n", i);
|
||||||
double percentLeft = ((double) i / (double) (30 * 1000));
|
double percentLeft = (double) i / (double) (30 * 1000);
|
||||||
progBarEndIndex = 228 - ((int) (228 * percentLeft));
|
progBarEndIndex = 228 - (int) (228 * percentLeft);
|
||||||
Paint_ClearWindows(progBarCurrentIndex, 111, progBarEndIndex, 93, WHITE);
|
Paint_ClearWindows(progBarCurrentIndex, 113, progBarEndIndex, 93, WHITE);
|
||||||
int line = 15;
|
int line = 15;
|
||||||
while (progBarCurrentIndex < progBarEndIndex) {
|
while (progBarCurrentIndex < progBarEndIndex) {
|
||||||
DebugLine(line, 0, "Line: %d,111 - %d,93\n", progBarCurrentIndex, progBarEndIndex);
|
DebugLine(line, 0, "Line: %d,113 - %d,93\n", progBarCurrentIndex, progBarEndIndex);
|
||||||
Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, BLACK, DOT_PIXEL_1X1,
|
Paint_DrawLine(progBarCurrentIndex, 113, progBarCurrentIndex, 93, BLACK, DOT_PIXEL_1X1,
|
||||||
LINE_STYLE_SOLID);
|
LINE_STYLE_SOLID);
|
||||||
++progBarCurrentIndex;
|
++progBarCurrentIndex;
|
||||||
++line;
|
++line;
|
||||||
@ -125,7 +125,6 @@ void home(UWORD *blackImage) {
|
|||||||
}
|
}
|
||||||
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);
|
||||||
Paint_SelectImage(blackImage);
|
Paint_SelectImage(blackImage);
|
||||||
|
|
||||||
@ -151,7 +150,6 @@ void home(UWORD *blackImage) {
|
|||||||
code(blackImage, configNames[i]);
|
code(blackImage, configNames[i]);
|
||||||
|
|
||||||
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);
|
||||||
EPD_2in13_V4_Init();
|
|
||||||
Paint_SelectImage(blackImage);
|
Paint_SelectImage(blackImage);
|
||||||
Paint_Clear(WHITE);
|
Paint_Clear(WHITE);
|
||||||
for (int j = 0; j < length; j++) {
|
for (int j = 0; j < length; j++) {
|
||||||
@ -163,8 +161,6 @@ void home(UWORD *blackImage) {
|
|||||||
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);
|
||||||
Paint_SelectImage(blackImage);
|
Paint_SelectImage(blackImage);
|
||||||
i = 0;
|
|
||||||
Paint_DrawString(115, 5 + (i * 20), "<", &Font12, WHITE, BLACK);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'q':
|
case 'q':
|
||||||
|
Loading…
Reference in New Issue
Block a user