i need code
d2 as input
d13 output led
if d2 go hi led will blink five times then still on
blinking time 150
when d2 go low led will go off
and when d2 go high again go to start
thanks
i need code
d2 as input
d13 output led
if d2 go hi led will blink five times then still on
blinking time 150
when d2 go low led will go off
and when d2 go high again go to start
thanks
This is not the way this sub-forum is meant to be. Asking for ready to flash code should be done in the
Gigs and Collaborations-subforum. Be prepared for paying for the programming-service.
Your words "I need code" are unfriendly
in my ears this sounds like "finish my project and hurry up!"
**Maybe you wrote it because you don't know much english words **
anyway you should take a little more time to write it pollite and friendly.
You are asking for others free time for free
You are not asking for help as your headline says. You are asking for ready to flash code.
The functionality that you describe seems to be an academic exercise not a real world project.
So asking for help means give a detailed description of your project
post a first try of some lines of code - even if your code does not compile and ask a concrete question.
Then you will get explanations to improve your own knowledge.
Posting ready to flash code does not improve your knowledge about programming.
**best regards Stefan **
school assignment?
Layth1:
i need code
d2 as input
d13 output led
if d2 go hi led will blink five times then still on
blinking time 150
when d2 go low led will go off
and when d2 go high again go to startthanks
Maybe this could help you get started:
int ledPin = 13;
int btPin = 2;
void setup() {
// put your setup code here, to run once:
pinMode(ledPin, OUTPUT);
pinMode(btPin, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
}
Of course you can ask here in the forum. But then you have to wait for the answers. If you start to learn how coding works you become more and more independent of waiting for answers.
Take a look into this tutorial:
It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.
best regards Stefan
I'm guessing that in the grand scheme of things, the projects I've made with the Arduino and ESP32 are not super complex. Probably run of the mill for a half decent programmer.
However, by going through literally hundreds of examples and by researching this forum and online, I've got everything to work quite well so far, and I think I'm only on my second 'begging for help' post on this forum. And even then, I'm not expecting my code written for me, just a shove in the right direction.
I'm quite sure that what the OP wants is reasonably straight forward and a quick look through two or three of the Arduino examples will certainly offer enough code to get started.
As another poster mentioned, nothing to learn by simply copying and pasting!!
Cheers,
Matt.
The first error newbies make is connecting their "button" to +5V and then to input pin, leaving the pin "floating" between HIGH and LOW. Connect like S3 in the diagram and use:
pinMode(2, INPUT_PULLUP);
hi
its first time to work with arduino. i learned to work on basic language in 1989 so i thought its easy to work with arduino.I saw the forum and I thought that I can find some members can help me with my first project but its just like i hear some one say shut-up and get-out of here. maybe my English is not good but i can express about what i feel. any way thanks for all members those answered me.
Layth1:
hi
its first time to work with arduino. i learned to work on basic language in 1989 so i thought its easy to work with arduino.I saw the forum and I thought that I can find some members can help me with my first project but its just like i hear some one say shut-up and get-out of here. maybe my English is not good but i can express about what i feel. any way thanks for all members those answered me.
The problem is you want someone to write code for you. This forum doesn't work that way. We will help you with your coding attempt. Arduino is C/C++. There are many references online for this.
Layth1:
hi
its first time to work with arduino. i learned to work on basic language in 1989 so i thought its easy to work with arduino.I saw the forum and I thought that I can find some members can help me with my first project but its just like i hear some one say shut-up and get-out of here. maybe my English is not good but i can express about what i feel. any way thanks for all members those answered me.
surely we can help,
if you have some experience in basic, just make an attempt to write a small piece of pseudo-code or basic-code that show how you try to attempt the functionality described in your first post. Writing this first try shows some effort of your own. Writing "I need code" is completely different. So just give it a try or ask concrete questions like
"What do I need to code to switch an IO-port ON?"
"Where can I find example-code shows how to blink an LED?"
This is what makes the difference to just writing "I need code"
best regards Stefan