Repeat a certain part of code.

This if statement you got right

if (buttonState = 1) { //Driver mode 1
...
...

All the others you did get wrong :wink: E.g.

if (buttonState = 2); { //Driver mode 2
...
...

The semi-colon terminates the if statement and hence the code block after it will unconditionally be executed.