void setup() {
// put your setup code here, to run once:
DDRA = 0xFF;
DDRC = 0xFF;
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
for (int i =7; i>=0 ;i--){
PORTC |= (B00000001 << i);
//PORTC |= 0x01 << i;
delay(300);
//Serial.println(PORTC , BIN);
}
//PORTC = B1111 1111
for( int i =0 ;i<8;i++){
PORTA ^= (B00000001 << i);
delay(300);
}
//iteration 1 PORTC (Original)= 1111 1111
//iteration 1 bit = 0000 0001
//iteration 1 result=
PORTC = 0x00;
PORTA = 0x00;
delay(300);
}