Write Your Own Function

Intermediate

Group code into reusable functions with def. Call the same function multiple times without repeating yourself, and pass in parameters to change the behaviour.

15 min6 steps
FunctionsdefParametersLEDBuzzerProgrammingIntermediate
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.