11273| 7
|
[求助] LCD12864 翻页显示求助 |
用那种带键盘的LCD,样例里有菜单。 举个例子: #define btnUP 1 #define btnDOWN 2 void setup () { Serial.begin(57600); pinMode(backLight, OUTPUT); Wire.begin(); RTC.begin(); void selectMenu() { int button = 0; menuOption = 1; while (menuOption <= menuOptions) { button = read_LCD_buttons(); if (menuOption == 2) 凭记忆写的不全,参考下。 |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed