From 9fc738022319adc5c1e9ca80134dcbfe720fdf68 Mon Sep 17 00:00:00 2001 From: Daniel Brunner Date: Sun, 5 Sep 2021 21:44:35 +0200 Subject: [PATCH] Initial Home page --- Home.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Home.md diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..f0e53d9 --- /dev/null +++ b/Home.md @@ -0,0 +1,21 @@ +Welcome to the esp-gui-lib wiki! + +## Rich text +Use the rich text rendering facilities to render colorful text. + +``` +#include + +const int16_t width = espgui::renderRichText("Color &1red &2green &3blue", 50, 50); +``` + +| Esc Seq | Result | +| ------------- | ------------- | +| `&1` | Sets the color to ![#ff0000](https://via.placeholder.com/15/ff0000/000000?text=+) `TFT_RED` | +| `&2` | Sets the color to ![#00ff00](https://via.placeholder.com/15/00ff00/000000?text=+) `TFT_GREEN` | +| `&3` | Sets the color to ![#0000ff](https://via.placeholder.com/15/0000ff/000000?text=+) `TFT_BLUE` | +| `&4` | Sets the color to ![#000000](https://via.placeholder.com/15/000000/000000?text=+) `TFT_BLACK` | +| `&5` | Sets the color to ![#ffffff](https://via.placeholder.com/15/ffffff/000000?text=+) `TFT_WHITE` | +| `&6` | Sets the color to ![#888888](https://via.placeholder.com/15/888888/000000?text=+) `TFT_GREY` | +| `&0` | Restores original color (previously set with `tft.setTextColor()` | +| `&&` | Prints single `&` character without changing anything else | \ No newline at end of file