/******************************************************
An open-source binary clock for Arduino.
Customized by XSaitoKungX
Web: https://tesseract.vip
Created at: 03-05-2023
Last changed: 10-05-2023
******************************************************/
void setup() {
// put your setup code here, to run once:
DDRD = B1111100;
DDRB = 000011;
}
void loop() {
// put your main code here, to run repeatedly:
for (int i = 0; i < 256; i++) {
PORTD = i << 2;
PORTB = i >> 6;
delay(100);
}
}