Loop Until: while

Beginner

Use a while loop to keep repeating code as long as a condition stays true. Count button presses and stop automatically when the target is reached.

12 min5 steps
LoopsWhileInputOLEDProgrammingBeginner
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.