1What you need
- LED
- 2 wires
2Challenge
####Connect an LED to the Calliope mini. When you press button A, the LED turns on. If you press button B, the LED will turn off again.
3Solution
###Code
Note: A digital value of "1" means that the digital output at the pin will be switched up, i.e. the pin has a voltage of 3V. The value "0" means "no voltage at the pin".
Electronics
LED (+/-)!
- short leg: GND (-)
- long leg: analog output (P2)
This text as well as the image is published under a CC BY-SA 4.0 DE license popup: yes. It was originally published in German popup: yes by phzh popup: yes and translated into English by the Calliope team.