Practice

Tug of War

Create a two-player game that simulates a tug of war.

  1. Each player is assigned a button (red or green) and has to press the button 10 times before the other player can.
  2. When there is a winner you should flash both LEDS once then the winners LED 5 times.
Solutions available for educators. Email us for access.
Practice

Tug of War

Create a two-player game that simulates a tug of war.

  1. Each player is assigned a button (red or green) and has to press the button 10 times before the other player can.
  2. When there is a winner you should flash both LEDS once then the winners LED 5 times.
Solutions available for educators. Email us for access.
Practice

Tug of War

Create a two-player game that simulates a tug of war.

  1. Each player is assigned a button (red or green) and has to press the button 10 times before the other player can.
  2. When there is a winner you should flash both LEDS once then the winners LED 5 times.
Solutions available for educators. Email us for access.
Practice

Tug of War

Create a two-player game that simulates a tug of war.

  1. Each player is assigned a button (red or green) and has to press the button 10 times before the other player can.
  2. When there is a winner you should turn both LEDs on and display who won on your window.
  3. Include a button on your window that resets the game so it can be played again.
Solutions available for educators. Email us for access.

What are Phidgets?

Phidgets are programmable USB sensors. Simply plug in your sensor, write code in your favorite language and go!

Phidgets have been used by STEM professionals for over 20 years and are now available to students.

Learn more

Set your preferences

Windows

Mac OS

Raspberry Pi

Java

Python

C#

Swift

NetBeans

Processing

Eclipse

Thonny

PyCharm

PyScripter

Visual Studio

Xcode

Setting your preferred operating system, programming language and environment lets us display relevant code samples for the Getting Started Tutorial, Device Tutorials and Projects

Done