from machine import mem32,Pin
from time import sleep_ms
a=["a","b","c","d","e","f","g"]
for i in range (7):
a[i]=Pin(i,Pin.OUT)
addrSIO = 0xd0000000
while True:
for i in range (10):
mem32[addrSIO + 0x014]=0x0000003f
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x00000006
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x0000005b
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x0000004f
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x00000066
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x0000006d
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x0000007d
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x00000007
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)
mem32[addrSIO + 0x014]=0x0000006f
sleep_ms(500)
mem32[addrSIO + 0x018]=0x0000007f
sleep_ms(500)