

ARDUINO SKETCH BOOK SOFTWARE
When a sketch is loaded to an Arduino board, it is first built by software tools that automatically run. Comments describe what is happening in the sketch. The code is everything in the image that is not a comment. As can be seen, it contains a mix of single-line comments and code. The image below shows the Blink sketch code with the top comment block removed. Consequently the next line after the comment is not part of the comment. This is a single-line comment that turns everything after the // on the same line into a comment. In this case, everything after the // is part of the comment. After that, find a link to the Arduino Blink sketch tutorial page.Ī second type of comment starts with double forward slashes //. Detailed information about the on-board LED, and a history of the sketch follows. The sketch name and description are contained in the top comment block of the Blink sketch. This type of comment can span multiple lines. Place any comments or notes that you want between these characters. Text typed between an opening forward slash and asterisk /* and closing asterisk forward slash */ is ignored by the software tools that run when the sketch is uploaded to an Arduino board. Comments are shown in a gray color between the /* and */ characters. Scroll down to find the code that blinks the on-board LED. The Blink sketch contains a big comment block at the top. Open the Blink example sketch: Select File → Examples → 01.Basics → Blink on the top Arduino IDE menu. Modify the Blink sketch and see the LED blink rate change, as described next. In this case, the on-board LED continues blinking at the same rate. If your board already had the Blink sketch loaded, you would not have seen any changes after loading the Blink sketch again. New official Arduino boards have this sketch factory loaded. The Blink example sketch in the previous part of this tutorial flashes or blinks the on-board LED on an Arduino Uno or MEGA 2560. Modifying Arduino Example Sketches for Beginners Complete that part of the tutorial before continuing with this part.


ARDUINO SKETCH BOOK HOW TO
It also shows how to load a first sketch to the target Arduino board. The previous part of this Arduino tutorial for beginners shows how to load the Arduino IDE software application to a host computer.
