mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-20 18:35:05 +00:00
- Updated LVGL from 8.3 to 9.0 (removed example/docs/demo folders) - Updated esp_lvgl_port to current status of the `lvgl9` branch on `esp-bsp`: https://github.com/espressif/esp-bsp/tree/lvgl9 - Updated all boards and drivers - Removed `libs/lv_drivers` subproject as SDL is now supported by LVGL directly (although keyboard input seems broken) - Updated `libs/lv_screenshot` - Fixed the way `tt_statusbar` widget works due to behaviour change in LVGL - Updated other lvgl code
12 lines
375 B
C
12 lines
375 B
C
#include "save_png.h"
|
|
#include "src/libs/lodepng/lodepng.h"
|
|
|
|
bool lv_screenshot_save_png_file(const uint8_t* image, uint32_t w, uint32_t h, uint32_t bpp, const char* filename) {
|
|
if (bpp == 32) {
|
|
return lodepng_encode32_file(filename, image, w, h);
|
|
} else if (bpp == 24) {
|
|
return lodepng_encode24_file(filename, image, w, h);
|
|
}
|
|
return false;
|
|
}
|