// Example WokWi file for Prac 1
// The standard Arduino UNO does not support the LEDs present on the Flinduino board
// LED 1 - Red LED - represents LED1 on Flinduino
// LED 2 - Yellow LED - represents LED2 on Flinduino
// LED 3 - Green LED - represents LED3 on Flinduino
// The following defines are not required on the Flinduino
#ifndef ARDUINO_ARCH_PIC32
#endif
void setup() {
for(int i=0;i<=6;i++)
{
pinMode(i, OUTPUT);
}
}
int x = 5;
void loop() {
x--;
if (x<0)
{
x=5;
}
digitalWrite(x, HIGH);
delay(60);
digitalWrite(x, LOW);
}