![]() 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. 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.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |