I bought few weeks ago the starter kit, being fascinated by this fantastic world.
I would like to make a small project but I don't know how, hope someone can help me out.
I have two pushbuttons (1 and 2), on two independent breadboards, that have turn On or Off simultaneously a LED A and B, one on the first breadboard, the second on the other one.
When I push 1 or 2 I have to change the state of the LEDs (high or low) without keeping the button pushed. Arduino has to count how many times LEDs are On and for how long.
Do you know how to build this code? There is any example or tutorial I could see for that scope?
Your description is ambiguous in several ways. Can you post a schematic diagram and/or some pictures? Can you post the code you have working so far? Can you describe an example of step-by-step button presses and led on/off changes?
Please read the forum rules before you reply so that know how to post pictures and code correctly.
I was wondering if there is a way to use 2 buttons for 2 leds. So that when one is pushed, both leds blink simultaneously. When the other is pushed both leds blink in sequence. And when both buttons are pushed both leds stay on. I was curious what coding I would need to complete this or if you know where I can find it?
This can be easily done by you.
If you look at a few examples with switches and LEDs, you will be able to do this task.
There are basic examples in the IDE.
Try some coding, if you run into problems post your code here and you will get help.
I think about something... when theres two buttons for two leds, why dont just use "if"? I had a good training on it, when I was programming pin dot matrix(8x8) and 4buttons, Iwas able to program an easy game-looking programm. I will be maybe showing it somewhere...But There is it: do you know something about if? theres can be useful using flowchart.