Hello everyone
I have a programming for a scalectric timer(stopwatch), I see the programming on the arduino monitor, now I would like to be able to send that information to 4 leds of 7 segments, someone could tell me how it is done because I still do not study that part.
The LEDs I already have connected are common, digits 10.11.12.13 and 2.3.4.5.6.7.8.9 is ok
I enclose the schedule for testing.
/*Beaver's Hobby Channel Easy Arduino Project #2: Super simple lap timer
What you need:
- Arduino of your choice
- IR Obstacle Avoidance sensor (FC-51)
*/
double i = 0;
double a = millis();
double c ;
//int lap = 0;
void setup()
{
Serial.begin(9600);
pinMode(A0, INPUT);
digitalWrite(A0, HIGH);
}
void loop()
{
delay(10);
if(digitalRead(A0) == LOW)
{
c = millis();
i = (c - a) / 1000;
if(i > 1)
{
/* lap++;
Serial.print("Lap: ");
Serial.print(lap);
*/ // Serial.print("\t\t");
Serial.println(i);
a = millis();
}
}
}