// Pin 13 has an LED connected on most Arduino boards.
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off
delay(1000); // wait for a second
}
| ITEM | Time |
|---|---|
| Workshop | 2:35 |
| Hello World | 0:15 |
| Rock Paper Scissors | 0:30 |
| Stop watch | 0:30 |
| Avalanche transceiver | 0:30 |
| Banana keyboard | 0:20 |
| Fireflies | 0:30 |
Except where otherwise noted, this work is licensed under Creative Commons Attribution-ShareAlike 4.0 International License
The source of this presentation is available at https://github.com/egli/microbit-workshop