Touch Sensor with Loop

Home > Activities > Robots > Examples

Computer Challenge logo

 

  Equipment
  Building
  Programming
  Missions
Examples
  Contests
  Links
  Award

 

Action: Play a chord each time the touch sensor on port 2 is pushed.

Reading the program

  • Begin the program
  • Land - Start a loop
  • Wait until the touch sensor connected to input 2 is pushed in
  • Play a C note
  • Play an E note
  • Play a G note
  • Jump - Loop to the red land
  • End the program

Where to find it

Jump and Land: click Structures then Jumpson the functions palette.

Play note: click Music on the functions palette

For more information: See the Touch Sensors tutorial or Context Help in RoboLab.


  © 2012 Computer Challenge