Rocket Blaster Bug Hunt! Test your Troubleshooting.
This code will run, but it has some unexpected behavior. Can you find the error without using the hint?
This code will run, but it has some unexpected behavior. Can you find the error without using the hint?
The pinMode command is very important to how your code works. It sets up each component on the Code Rocket to either 'listen for' signals or send signals. If you weren't 'listening for' a signal on one of your buttons, it wouldn't be able to activate when it was pressed. In fact, it might be activated all the time!
Check your pinMode commands in the void setup.