when i run the Serial.printIn function, nothing happens.
i am a newbie so i don't know what is suppose to happen.
my laptop is windows 7
is there suppose to be a pop-up or something?
is there suppose to be a pop-up or something?
No.
Will you see anything- well that depends on the code you did not post (use code tags!).
Mark
i am talking about any code with the function digitalRead()
like the button example
here it is:
const int buttonPin = 2;
const int ledPin = 13;
int buttonState = 0;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop(){
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH);
}
else {
digitalWrite(ledPin, LOW);
}
}
So? what do you see the led doing. and YOU MUST USE CODE TAGS WHEN POSTING CODE!.
Mark
What do you think the digitalRead function is for ? (or does?)
Post with code but no code tag deleted by OP.
Mark
a098765:
is there suppose to be a pop-up or something?
I wonder if you have opened the Serial Monitor window in the Arduino IDE? It's the little button like a magnifying glass on the right hand side of the button bar. Or in the menus it is Tools/Serial Monitor.
...R
holmes4:
Post with code but no code tag deleted by OP.Mark
Deleted topic recovered from Recycle bin.
a098765:
i am talking about any code with the function digitalRead()like the button example
here it is:...
This is a very subtle problem. For one thing, your code doesn't have Serial.println in it.