starting drawing text

- zlib from components
- framebuffer for faster drawing
- disable currently smartconfig

Signed-off-by: Peter Siegmund <peter@rdkr.com>
This commit is contained in:
Peter Siegmund
2024-06-06 21:56:47 +02:00
parent 3094274ad8
commit ca68e9786c
67 changed files with 49140 additions and 15496 deletions

View File

@@ -1,31 +1,17 @@
#include <cJSON.h>
#include <esp_task.h>
#include <esp_task_wdt.h>
#include <stdio.h>
#include <string.h>
#include "epd_driver.h"
#include "mapView.h"
#include "smartconfig.h"
#include "utilities.h"
uint8_t* framebuffer;
void setup(void) {
epd_init();
epd_poweron();
epd_clear();
epd_poweroff();
framebuffer =
(uint8_t*)heap_caps_malloc(EPD_WIDTH * EPD_HEIGHT / 2, MALLOC_CAP_SPIRAM);
if (!framebuffer) {
printf("alloc memory failed !!!");
while (1) {
}
}
memset(framebuffer, 0xFF, EPD_WIDTH * EPD_HEIGHT / 2);
init_smartconfig();
// init_smartconfig();
xTaskCreatePinnedToCore(mapView, "mapView", 4096, NULL, 5, NULL, 1);
}
void loop(void) {