19 namespace graphical_display_menu {
21 const Color
COLOR_ON(255, 255, 255, 255);
27 this->is_item_selected = is_item_selected;
28 this->is_menu_editing = is_menu_editing;
38 void setup()
override;
39 void dump_config()
override;
43 template<
typename V>
void set_menu_item_value(V menu_item_value) { this->menu_item_value_ = menu_item_value; }
44 void set_foreground_color(
Color foreground_color);
45 void set_background_color(
Color background_color);
52 void draw_and_update()
override;
53 void draw_menu()
override;
60 void update()
override;
62 void on_before_show()
override;
63 void on_before_hide()
override;
65 std::unique_ptr<display::DisplayPage> display_page_{
nullptr};
const Color COLOR_OFF(0, 0, 0, 0)
Turn the pixel OFF.
const Color COLOR_ON(255, 255, 255, 255)
Turn the pixel ON.
Implementation of SPI Controller mode.