Debian Codegraph @

examples/atmega32/POV.py

raw symbols SCIP
1 import time
2 #from kuttyPy import *
3 setReg('DDRD',255)
4
5 ca = [128+64,64+32+16,16+8+4,19,19,16+8+4,16+32+64,128+64]
6 ct = [1,1,1,255,255,1,1,1]
7 cj = [128+64+1,128+1,128+1,128+1,255,1,1,1]
8 ci= [0,0,129,255,255,129,0,0]
9 ch=[255,255,24,24,24,24,255,255]
10 cn=[255,3,14,24,16+32,64+32,64+128,255]
11 cv=[1+2,2+4+8,16+8+4,19,19,16+8+4,2+4+8,1+64]
12
13 while 1:
14 for a in [cj,ci,ct,ch,ci,cn]:
15 for b in a:
16 setReg('PORTB', b)
17 time.sleep(0.001)
18 time.sleep(0.008)
19 time.sleep(0.01)
20