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:
@@ -2,6 +2,8 @@ idf_component_register(SRCS "main.cpp"
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES
|
||||
lilygo-epd47
|
||||
smartconfig)
|
||||
smartconfig
|
||||
mapView
|
||||
json)
|
||||
|
||||
spiffs_create_partition_image(spiffs ../data FLASH_IN_PROJECT)
|
||||
|
@@ -1,25 +1,7 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
## Required IDF version
|
||||
idf:
|
||||
version: ">=4.1.0"
|
||||
# # Put list of dependencies here
|
||||
# # For components maintained by Espressif:
|
||||
# component: "~1.0.0"
|
||||
# # For 3rd party components:
|
||||
# username/component: ">=1.0.0,<2.0.0"
|
||||
# username2/component2:
|
||||
# version: "~1.0.0"
|
||||
# # For transient dependencies `public` flag can be set.
|
||||
# # `public` flag doesn't have an effect dependencies of the `main` component.
|
||||
# # All dependencies of `main` are public by default.
|
||||
# public: true
|
||||
|
||||
version: ">=5.0.0"
|
||||
|
||||
# lvgl/lvgl: "^8.4.0"
|
||||
# mars3142/microtimber: "^0.1.0"
|
||||
# espressif/zlib: "^1.3.0"
|
||||
# espressif/libpng: "^1.6.39~1"
|
||||
# LilyGo-EPD47:
|
||||
# git: git@github.com:Xinyuan-LilyGO/LilyGo-EPD47.git
|
||||
# path: src
|
||||
# version: esp32s3
|
||||
espressif/zlib: "^1.3.0"
|
||||
# espressif/libpng: "^1.6.39~1"
|
@@ -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