From de5006875675e5750235cebdd28836aceb2fc1c8 Mon Sep 17 00:00:00 2001 From: Matthew DeHaven Date: Thu, 30 May 2019 00:21:28 +0000 Subject: [PATCH] Added information on reading button status --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index a52de92..13aeb9b 100644 --- a/README.md +++ b/README.md @@ -82,3 +82,8 @@ Sets the backlight color (enter 0x00 to turn the backlight off). When using the `void CharLCD::print(std::string text)` Writes text to the LCD screen. The LCD text input is based on ASCII, so the string used must be ASCII formatted. + + +`uint8_t CharLCD::readButtons(void)` + +Returns the status of all five buttons contained in an 8-bit integer value, with each the five least significant bits representing one button (1 for pressed, 0 for not pressed). See example code lcd.cpp in /example folder for commands to get the status of each individual button.