Update button menu documentation as there are 1/2/3 options

This commit is contained in:
3d-gussner 2022-09-16 19:11:11 +02:00
parent 9d959f5d12
commit 0f8d84082a
1 changed files with 19 additions and 1 deletions

View File

@ -144,6 +144,24 @@ static uint8_t ReportErrorHookMonitor(uint8_t ei) {
} }
// Update '>' render only // Update '>' render only
//! @brief Button menu
//!
//! @code{.unparsed}
//! |01234567890123456789|
//! | |
//! | |
//! | |
//! |>(left) |
//! ----------------------
//! Three choices
//! |>(left)>(mid)>(righ)|
//! ----------------------
//! Two choises
//! ----------------------
//! |>(left) >(mid) |
//! ----------------------
//! @endcode
//
lcd_set_cursor(0, 3); lcd_set_cursor(0, 3);
lcd_print(current_selection == LCD_LEFT_BUTTON_CHOICE ? '>': ' '); lcd_print(current_selection == LCD_LEFT_BUTTON_CHOICE ? '>': ' ');
if (two_choices == false) if (two_choices == false)