I need help right now!

I've a problem, and I don't know how I can do to a button print a message that I write. how can I program that?
tengo un proble y es que no se como hacer que un boton me imprima un mensaje, como puedo hacer para que un boton me imprima un mensaje en especifico?

es para un proyecto en 3 dias, gracias!

its not to hard here is some code for you to use as an example
open serial monitor (make sure its set to 9600 baud)

int button = 3 ;//the pin with your button
void setup() {

pinMode(button,INPUT_PULLUP); //set the pin to input
Serial.begin(9600);
Serial.println("system ready");
Serial.println(" ");
}

void loop() {

//wait for button to be pressed then display text
if (digitalRead(button) == 0) {
delay(100);//wait a little
Serial.println("what you want to print"); //put your words here
}
}

brenden_nerd_:
.....its not to hard here is some code for you to use as an example.....

@brenden_nerd_, by now you should know to post your code between code tags and not inline.

People keep telling you this and you just keep ignoring them. We all use code tags so why not you? Do you think you're special?

If you don't know how:-
You really should have read the How to use this forum - please read post at the top of the index page and How to use this forum before posting.

ie Your code and any error messages should always be placed between code tags. Posting it inline as you have done makes it much harder to read or copy and paste for diagnosis.

It's still not too late to edit your post and do this.

You can also create code tags manually as shown here:-

[code]Paste your code here[/code]
It will appear in a block like this

I need help right now!

How old are you?
.

Anyone who has lived through raising a two-year old knows what an interrupt service routine is, but this is a new one for me.

econjack:
Anyone who has lived through raising a two-year old knows what an interrupt service routine is, but this is a new one for me.

Now THAT is the perfect description !!! :slight_smile: Been there, done that.

icamox:
I've a problem, and I don't know how I can do to a button print a message that I write. how can I program that?

  • Learn programming!
  • Do programming as you want it!