Tasten und Schalter

Switches and buttons are great ways to make things happen in your creations. A button is used to connect an input pin with either GND or 3V3. You can used the "pressed" block in the input palette to do something when a pin is attached to GND, or use "on pin pulsed high" block in the "Pins" palette to do something when a pin is attached to 3V3. This sample code uses a button connected to P0 and GND, and a button connected to P13 and 3V3. Either button can be used with either pin, the alligator clips just need to go to the correct places.

The button connects pins when it is pushed, so alligator clips should be placed on the front two pins of the flipper switch, and the two pins of the arcade button. Make sure that the metal parts of the clips are not touching, otherwise the pins will be short circuited.