Autonomous Chooser for LCD Display

Does anyone know how to make the program for the autonomous code chooser???

Search the forum, there are many examples, here is one.

Personally, I would suggest using a potentiometer. When the potentiometer is at a certain angle, it’s one autonomous. In a different angle, it’s another autonomous.