davetcc / tcunicodehelper Goto Github PK
View Code? Open in Web Editor NEWA series of unicode helper classes compatible with both tcMenu and Adafruit/U8G2/TFT_eSPI
License: Apache License 2.0
A series of unicode helper classes compatible with both tcMenu and Adafruit/U8G2/TFT_eSPI
License: Apache License 2.0
.pio/libdeps/slave/tcUnicodeHelper/src/tcUnicodeHelper.cpp:207: error: ignoring #pragma clang diagnostic [-Werror=unknown-pragmas]
#pragma clang diagnostic pop
This is required to prevent circular inclusion. It will require both tcMenu and this be upgraded at the same time
Unfortunately in Arduino Due the __has_include() functionality isn't supported, so there may have to be something done with manual setup defines to allow the library to understand what to include.
Without any proper handling, Print doesn't get included into the main class and out pops this on compilation:
In file included from C:\Users\hannah\Documents\Arduino\libraries\tcMenu\src\extras\DrawableDashboard.h:11:0,
from C:\Users\hannah\Documents\Arduino\libraries\tcMenu\src\extras\DrawableDashboard.cpp:2:
C:\Users\hannah\Documents\Arduino\libraries\tcUnicodeHelper\src/tcUnicodeHelper.h:354:12: error: 'size_t UnicodeFontHandler::write(uint8_t)' marked override, but does not override
size_t write(uint8_t data) override;
^
C:\Users\hannah\Documents\Arduino\libraries\tcMenu\src\extras\DrawableDashboard.cpp: In member function 'void DashMenuItem::paintTitle(tcgfx::DeviceDrawable*)':
C:\Users\hannah\Documents\Arduino\libraries\tcMenu\src\extras\DrawableDashboard.cpp:204:21: error: 'class UnicodeFontHandler' has no member named 'print'
unicodeHandler->print(titleText);
^
C:\Users\hannah\Documents\Arduino\libraries\tcMenu\src\extras\DrawableDashboard.cpp: In member function 'void DashMenuItem::paintItem(tcgfx::DeviceDrawable*)':
C:\Users\hannah\Documents\Arduino\libraries\tcMenu\src\extras\DrawableDashboard.cpp:227:21: error: 'class UnicodeFontHandler' has no member named 'print'
unicodeHandler->print(sz);
^
If you || defined(ARDUINO_SAM_DUE) on the __has_include() checks for the libraries you have you can get around this but looks like the solution may involve some fancy footwork. Good luck!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.