#include"header.h"
void setup() {
// put your setup code here, to run once:
port_init();
while(1){
char x;
volatile long i;
for(x=0;x<8;x++) //right shift
{
output(1<<x); //1,2,4,8,16,32,64,128
for(i=0;i<100000;i++);
}
for(x=7;x>=0;x--)
{
output(1<<x); //128,64,32,16,8,4,2,1
for(i=0;i<100000;i++);
}
}
}
void loop() {
// put your main code here, to run repeatedly:
}