MenuItem menuItem4SubItem1 = MenuItem("Item4SubItem1") MenuItem menuItem3SubItem10 = MenuItem("51 sec") MenuItem menuItem3SubItem9 = MenuItem("50 sec") MenuItem menuItem3SubItem8 = MenuItem("49 sec") MenuItem menuItem3SubItem7 = MenuItem("48 sec") MenuItem menuItem3SubItem6 = MenuItem("47 sec") MenuItem menuItem3SubItem5 = MenuItem("46 sec") MenuItem menuItem3SubItem4 = MenuItem("45 sec") MenuItem menuItem3SubItem3 = MenuItem("44 sec") MenuItem menuItem3SubItem2 = MenuItem("43 sec") MenuItem menuItem3SubItem1 = MenuItem("42 sec") MenuItem menu1Item3 = MenuItem("Brew Time") MenuItem menuItem2SubItem3 = MenuItem("16oz Hot") MenuItem menuItem2SubItem2 = MenuItem("12oz Hot") MenuItem menuItem2SubItem1 = MenuItem("16oz Iced") MenuItem menu1Item2 = MenuItem("Drink Size") MenuBackend menu = MenuBackend(menuUsed,menuChanged) Long debounceDelay = 250 // the debounce time Long lastRightDebounceTime = 0 // the last time the output pin was toggled Long lastLeftDebounceTime = 0 // the last time the output pin was toggled Long lastEscDebounceTime = 0 // the last time the output pin was toggled Long lastEnterDebounceTime = 0 // the last time the output pin was toggled Int lastButtonRightState = LOW // the previous reading from the Right input pin Int lastButtonLeftState = LOW // the previous reading from the Left input pin Int lastButtonEscState = LOW // the previous reading from the Esc input pin Int lastButtonEnterState = LOW // the previous reading from the Enter input pin Int Brew_Time //variable for printing brew time to lcd when GO button is pressed Long int Brew_Delay // variable for brew time delay Int Drink_Size //variable for printing drink size to lcd when GO button is pressed Int Drink_Step //variable for amount of step by motor to accomodate different drink sizes Int SizeVar //variable for printing drink size when GO button is pressed Int SecCount //variable for countdown timer on lcd Int ReadGoButton // variable for reading go button state #include //this library is included in the Arduino IDEĬonst int buttonPinLeft = 8 // pin for the Up buttonĬonst int buttonPinRight = 9 // pin for the Down buttonĬonst int buttonPinEsc = 10 // pin for the Esc buttonĬonst int buttonPinEnter = 11 // pin for the Enter buttonĬonst int buttonPinGo = 1 // pin for Go button Here is the first part of my code:- #include //MenuBackend library - copyright by Alexander Brevig However, they are still appearing when I send a character string to the LCD.ĮDIT - I am currently using the LCD in 4 bit mode. This has gotten rid of the strange characters in simple sketches like Hello World. I have resoldered the header pins to the LCD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |