LCD Display

How to program the lcd display buttons for autonomous

There is a sample program in robotc.

yes but to program the buttons

The first button is a value of 1, the second is a value of 2, and the third is a value of 4. So if you want only one button to be pressed, for example 1 (The left button), you would say

if(nLCDButtons == 1){

if you want two buttons such as left and middle, you’d do 1+2=3. So you would put

if(nLCDButtons == 3){

But in order to make it where you’d let go of the button and it would keep a value, that’s a bit more complicated and would have to have a wait for release thing…
Hopefully this helps with your programming :slight_smile: