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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user