Go Down

Topic: My new arduino uno is turn on with red light  (Read 1 time) previous topic - next topic

ClaudiusMa

Its really a emergent problem because its part of the last assignment.

ClaudiusMa

#1
Dec 09, 2017, 07:48 am Last Edit: Dec 09, 2017, 08:03 am by ClaudiusMa
This is the picture

pert

ClaudiusMa's picture:


There are two lights shown in that picture. The one that is labeled "ON" is the power indicator and will always be on when the Arduino board is powered.

The one that is labeled "L" is connected to pin 13. You can turn it on and off using digitalWrite() on pin 13. See:
https://www.arduino.cc/reference/en/language/functions/digital-io/digitalwrite/

I recommend spending some time with File > Examples > 01.Basics > Blink and the associated tutorial:
https://www.arduino.cc/en/Tutorial/Blink
Note that the code uses LED_BUILTIN instead of 13 but it's the same thing because LED_BUILTIN is set to 13 on the Uno. This is just an easy way to make the Blink sketch work on all Arduino boards, some of which have the LED on a different pin than 13.


Go Up