Start of json parsing. Sometimes http get only gets partial json.
This commit is contained in:
1 parent
42e51a4a1c
commit
5e6606e6cc
4 files changed
+66
-9
No files matched your search
+4
-4
@@ -94,7 +94,7 @@ void display_loop(void *pvParameters) {
|
||||
Serial.println(counterStr);
|
||||
|
||||
Paint_Clear(WHITE);
|
||||
Paint_DrawString_EN(10, 0, counterStr, &Font16, BLACK, WHITE);
|
||||
Paint_DrawString_EN(10, 0, counterStr, &Font16, WHITE, BLACK);
|
||||
|
||||
EPD_4IN2_V2_PartialDisplay(
|
||||
counterBuffer,
|
||||
@@ -128,13 +128,13 @@ void setup() {
|
||||
Paint_NewImage(displayBuffer, EPD_4IN2_V2_WIDTH, EPD_4IN2_V2_HEIGHT, ROTATE_0, WHITE);
|
||||
Paint_SelectImage(displayBuffer);
|
||||
Paint_Clear(WHITE);
|
||||
Paint_DrawString_EN(10, 0, "F1 Display Test", &Font16, BLACK, WHITE);
|
||||
Paint_DrawString_EN(10, COUNTER_Y, "Counter: 0", &Font16, BLACK, WHITE);
|
||||
Paint_DrawString_EN(10, 0, "F1 Display Test", &Font16, WHITE, BLACK);
|
||||
Paint_DrawString_EN(10, COUNTER_Y, "Counter: 0", &Font16, WHITE, BLACK);
|
||||
EPD_4IN2_V2_Display(displayBuffer);
|
||||
|
||||
Paint_NewImage(counterBuffer, COUNTER_WIDTH, COUNTER_HEIGHT, ROTATE_0, WHITE);
|
||||
Paint_SelectImage(counterBuffer);
|
||||
|
||||
xTaskCreate(display_loop, "display_loop", 1024, NULL, 5, NULL);
|
||||
xTaskCreate(get_next_race, "get_next_race", 4096, NULL, 5, NULL);
|
||||
xTaskCreate(get_next_race, "get_next_race", 2048, NULL, 5, NULL);
|
||||
}
|
||||
Reference in new issue
Block a user