Press a Switch, Light an LED

Beginner

Use an if/else block to light the GRN LED whenever you press Switch A. This is your first program that reacts to the real world.

12 min5 steps
SwitchLEDIf/ElseBeginner
0 of 5 steps

Step 1 of 5

Connect your board

Power on your Beaver Board — the OLED will show a PIN code. Click Connect in the toolbar, choose Connect via Bluetooth, and select your board. If it's your first time, enter the PIN shown on the screen.