Using Example Codes
Background
Now that you have a taste of writing code in the Arduino IDE, we can speed up the process by loading pre-written example codes instead. In the Arduino world, the best way to learn is by experimenting, and there is no better way to experiment than using example codes that are already available in the Arduino community.
For the Discovery Kit, we’ve written some example codes to reduce the amount of labour on your fingers.
Go to the Discovery Kit Example Codes Repo
Download the example codes using the green "Code" button > Download ZIP
Open or re-open the Arduino IDE.
Go to File > Examples > CAROBOT_ADKL3 > ADKL3_01 and you should see something very similar to the code you wrote for circuit #1.
There are many more example codes available in the Arduino IDE. Take a look around and learn from them. You can also download more online.
| Prev |
|---|
| Circuit 09 - Spinning a Motor |