Overview
We recommend using our UI library, KGFX
, for common graphics use cases on kublet. Install our library by including this line in your platform.ini
file:
You can find the latest version of KGFX
by searching the KGFX
library on PIO or here.
To initialize KGFX
in your project and begin using its APIs, you should have these declarations in your main.cpp
file:
We call clear()
after we initalize the library just in case there are leftover pixels from the previous app.
KGFX
is a wrapper around the TFT_eSPI library. We are constantly adding new functions as needed. However, if there are functions that are not yet available on KGFX
, feel free to submit a PR or build your own functions on top of KGFX.