Click on the code below the line “#include
When writing code in Arduino, you can either review each line of code with the students as you type it or go back and review what the code means once you are all done. You could print the completed code for each group as a reference or use the Thinkabit Lab notebook.
- Colors don’t change like they do in the video
- The words “Servo”, “SoftwareSerial” and “int” should all change colors as they are recognized functions in Arduino. If they did not change colors as shown in the video, check the following:
- Check the spelling. Are the words spelled correctly with the proper capitalization?
- Check the spacing. Is proper spacing used? Watch the video and read the instructions carefully.
- If it changed color to a different color, the Arduino software may have been updated. If these words are colored, the code should still work properly.