![]() the loop function runs over and over again foreverĭigitalWrite(LED_BUILTIN, HIGH) // turn the LED on (HIGH is the voltage level)ĭigitalWrite(LED_BUILTIN, LOW) // turn the LED off by making the voltage LOW ![]() initialize digital pin LED_BUILTIN as an output. ![]() the setup function runs once when you press reset or power the board This example code is in the public domain. Model, check the Technical Specs of your board at: If you want to know what pin the on-board LED is connected to on your Arduino The correct LED pin independent of which board is used. It is attached to digital pin 13, on MKR1000 on pin 6. ![]() Most Arduinos have an on-board LED you can control. Turns an LED on for one second, then off for one second, repeatedly. Hi, the sketch is the example-basic-blink, with no changes: /* ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |