add error checking and initial backlight state to char lcd
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user