![]() ![]() If you want to lit an external LED with this sketch, you need to build this circuit, where you connect one end of the resistor to the digital pin correspondent to the LED_BUILTIN constant. ![]() ![]() ![]() Here is the correspondence between the constant and the digital pin. This constant is LED_BUILTIN and allows you to control the built-in LED easily. To make your life easier, we have a constant that is specified in every board descriptor file. This LED is connected to a digital pin and its number may vary from board type to board type. This example uses the built-in LED that most Arduino boards have. This example shows the simplest thing you can do with an Arduino to see physical output: it blinks the on-board LED.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |