int delaytime=300;
int x[]={0xBF,0x89,0xE7,0xCF,0xD9,0xDE,0xFE,0x8B,0xFF,0xDF};
size_t size = sizeof(x)/sizeof(x[0]);
void setup() {
// put your setup code here, to run once:
DDRD = 255;
Serial.begin(9600);
}
//>
void loop() {
// put your main code here, to run repeatedly:
for (size_t i=0;i<size;i++){
PORTD = ~(x[i]);
//Serial.println(DDRD = x[i]);
delay(delaytime);
}
for (size_t z=size;z>0;z--)
{
PORTD = x[z];
Serial.println(DDRD = x[z]);
delay(delaytime);
}
}