From f4b568f055ac3d0e67e657895736b2cc852540cf Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 18 Aug 2021 16:53:11 +0200 Subject: [PATCH] Added icon.h --- CMakeLists.txt | 36 ++++++++++++++++++++++++++++++++++++ src/icon.h | 13 +++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 src/icon.h diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a1d4bad --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,36 @@ +set(headers + src/icon.h +) + +set(sources +) + +set(dependencies + cpputils + espchrono + espcpputils + expected + fmt + + TFT_eSPI +) + +idf_component_register( + INCLUDE_DIRS + src + SRCS + ${headers} + ${sources} + REQUIRES + ${dependencies} +) + +target_compile_options(${COMPONENT_TARGET} + PRIVATE + -fstack-reuse=all + -fstack-protector-all + -Wno-unused-function + -Wno-deprecated-declarations + -Wno-missing-field-initializers + -Wno-parentheses +) diff --git a/src/icon.h b/src/icon.h new file mode 100644 index 0000000..4dd4a1d --- /dev/null +++ b/src/icon.h @@ -0,0 +1,13 @@ +#pragma once + +// system includes +#include + +template +struct Icon +{ + static constexpr auto WIDTH=width; + static constexpr auto HEIGHT=height; + + const unsigned short buffer[width*height]; +};