add error checking and initial backlight state to char lcd

This commit is contained in:
2026-09-29 23:54:27 -05:00
parent 8d635d41c6
commit ef79b2a835
6 changed files with 135 additions and 98 deletions
+2 -3
View File
@@ -2,11 +2,10 @@
#define BLK_BOX_H
struct BlkBoxInitConfig {
// nothing for now...
/// Initial character LCD backlight state.
bool lcd_backlight = true;
};
void init_blk_box(BlkBoxInitConfig cfg);
#endif // BLK_BOX_H
+1 -1
View File
@@ -18,7 +18,7 @@ enum class CursorMode: uint8_t {
};
/// Initializes the 2004 Character LCD
void init_lcd();
void init_lcd(bool initial_backlight);
class LCDController {
public: