int num = 0;
int modulo = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
modulo = num % 4;
num = num + 1;
Serial.println(modulo);
delay(100);
}
int num = 0;
int modulo = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
modulo = num % 4;
num = num + 1;
Serial.println(modulo);
delay(100);
}