Skip to content

Commit

Permalink
Added information on reading button status
Browse files Browse the repository at this point in the history
  • Loading branch information
dehavenm authored May 30, 2019
1 parent ace4ee2 commit de50068
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit de50068

Please sign in to comment.