//Retest start at 27-12-2023 - 03-01-24 to 18-01-24
//auto shipting
void setup() {
  // put your setup code here, to run once:
  volatile char *dirf,*dirk;
                dirk=0x107;
                *dirk=0xff;
                 dirf=0x30;
                 *dirf=0xff;
    
}
void loop() {
  // put your main code here, to run repeatedly:
  volatile char *outf,*outk;
    volatile      long i,j; 
    char x=255,loop=0,z=1,m=1;     
                while(loop<8)  
                {
                    x=(x-z);
                 outk=0x108;                 
                 *outk=x;
                 outf=0x31;
                 *outf=0x01;
                 for(i=0;i<500000;i++);
                 *outf=0;
                 for(i=0;i<500000;i++);
                 x=x+z;
                 m=m*2;
                 z=m;
                 loop++;
                }
                 
                 }