BASIC project problem

I'm just starting and tried a very simple project, with a button turning a Led on. The problem is that the led is always On if a jumper is attached to the digital port '9'.

What can this be?

The code bellow isn't the one I was working on, it's just to test the problem. Evento with this code the led is on when there's a jumper on '9'

#define led 13

Void setup() {

pinMode(led, OUTPUT);

digitalWrite(led, LOW);
}

Void loop (){
}

Hi
How have you got your LED wired?
What model arduino are you using?
If it is a UNO is the LED on the PCB that is connected to pin 13 also ON.

A picture of your assembly would help.
If you use REPLY rather than QUICK REPLY you will find ATTACHMENT facitity to send your picture.

Please read.
http://forum.arduino.cc/index.php/topic,148850.0.html

Hope to help.....Tom.... :slight_smile:

Jumper to where?

What happens when you load "Blink"?

Weedpharma

The code bellow isn't the one I was working on, it's just to test the problem

The code you posted (without code tags) doesn't even compile, so you can't say it doesn't work.

AWOL:
The code you posted ... doesn't even compile

Jeez my eyes are getting old.... it looked fine to me until the compiler rejected it, then I saw the subtle mistakes.

I'm still trying to figure out where BASIC figures in all this.

eduardomartinspires:
I'm just starting and tried a very simple project, with a button turning a Led on. The problem is that the led is always On if a jumper is attached to the digital port '9'.

What can this be?

The code bellow isn't the one I was working on, it's just to test the problem. Evento with this code the led is on when there's a jumper on '9'

#define led 13

Void setup() {

pinMode(led, OUTPUT);

digitalWrite(led, LOW);
}

Void loop (){
}

It's not going to work with Void... Try void instead.