Basic Gun Page 2: Coding Strategy

The basic idea behind this gun is quite simple. Here are the steps that it will take:

  • Wait for the user to press a button
  • When the user presses the button do the following:
  • Turn the LED on for 13 instructions
  • Turn the LED off for 13 instructions
  • Repeat the above steps 76 more times
  • Wait for 1976 instructions
  • Go back to turning the LED on and off, and repeat all the above steps 35 times
  • Return to waiting for the user to press a button

This is all that has to be done to make a gun that will hit Laser Challenge sensors in common mode (i.e. not using the ELS or team modes).