//my first seven segment display first programming 18/07/22
void setup() {
  // put your setup code here, to run once:
    char *dir;
         dir=0x30;
         *dir=0xff;
         dir=0x107;
         *dir=0xFF;
    
}

void loop() {
  // put your main code here, to run repeatedly:
   volatile char *out;

      volatile long j,count=0;

            count++;

          if(count==1)
          {
            out=0x108;
            *out=0x01;
            out=0x31;
            *out=0xA4;
             for(j=0;j<500000;j++);
          }
          if(count==2)
          {
            out=0x108;
            *out=0x02;
            out=0x31;
            *out=0x98;
             for(j=0;j<500000;j++);
          }
         
}