// Serial plot color demonstration for for
// https://github.com/wokwi/wokwi-features/issues/544
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
const double n = 8;
for (int i = 0; i < n; i++) {
Serial.print(i);
Serial.print(':');
Serial.print(sin((millis() / 3600.0/2 + i / n/2) * 2 * PI));
Serial.print(' ');
}
Serial.println();
delay(100);
}