Hi,
I am pretty much new to Arduino, and I have a little problem over here.
So, I have a code to put voltage on pin 10 for a short amount of time.
I am using the following:
int ledPin = 10; // LED connected to digital pin 10
void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}
It does not work. I plugged a cable in the place where it says: DIGITAL PWM 10
I also connected a cable from the breadboard back to ground again.
What is wrong with my setup/code?