Counting with a Loop

Beginner

Use a variable as a counter that goes up by one every time you press a button. Watch the count appear live on the OLED screen.

12 min6 steps
VariablesLoopsCountingOLEDInputProgrammingBeginner
0 of 6 steps

Step 1 of 6

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.