I was just wondering if anyone has LCD code that could change between different programs (about 4 programs). Does anyone have this code that they would like to share?
Which programming language are you using. easyC or ROBOTC?
~Jordan
RobotC
Lance
Have you looked at the sample programs at all? There is one that is for the LCD Screen.
~Jordan
One thing I like to do when creating a program like this is to write out a flowchart. I’ve attached one for this type of program in *.jpg format. (if you need another format, let me know) As far as the actual coding goes, I’ll let you figure that out…
In the autonomous task, just use either a select-case or if/then series to run the proper autonomous code based on the autonomousNumber variable.
Hope this helps,
Andrew
P.S. After creating the file, I realized that the “display autonomousNumber” step should only be triggered if either the left or right button has been pressed. This is for more efficient code, and it is easier on the LCD screen.
P.P.S. Sorry about the poor resolution - I didn’t have a lot of time to make it…
You don’t have to use the LCD screen, the team I mentored didn’t have the funds to buy the LCD screen. What we did is install 4 extensions and created an easily accessible place to plug an interrupt in, and used 4 if loops in our code, inside those 4 loops we used custom user blocks.
True. You could also use limit switches and rubber bands (binary selection), a potentiometer with markings on it, or swipe a colored card by a light sensor…
However, if the LCD is available for your team, I would recommend it…
Our team used a pot with one of the big chain gears as a knob and some metal to be the stop. Worked out well about 10 different settings.