1
1
import ugfx , appglue , hashlib , ubinascii , time , uos
2
2
3
- names = ["Kartoffel " , "Sebastius " , "tsd " , "Sprite_TM " , "Underhand " , "MaruksBek " , "Roosted " , "the_JinX " , "realitygaps " , "raboof " , "Alexandre Dulaunoy" , " Eric Poulsen" , "Damien P. George" , "Renze Nicolai " ]
3
+ names = ["Niek Blankers " , "Sebastiaan Oort " , "Bas van Sisseren " , "Jeroen Domburg " , "Gavan Fantom " , "Markus Bechtold " , "Thomas Roos " , "Anne Jan Brouwer " , "Renze Nicolai " , "Aram Verstegen " , "Arnout Engelen" , " Alexandre Dulaunoy" , " Eric Poulsen" , "Damien P. George" ]
4
4
5
5
def action_exit (pushed ):
6
6
if (pushed ):
7
7
appglue .home ()
8
-
8
+
9
9
def fill_screen_with_crap (c ):
10
10
print ("Filling screen..." )
11
11
for i in range (0 ,3 ):
12
12
nr = int .from_bytes (uos .urandom (1 ), 1 )
13
13
sha = hashlib .sha1 (str (nr ))
14
- s = ubinascii .hexlify (sha .digest ())
14
+ s = ubinascii .hexlify (sha .digest ())
15
15
for j in range (0 ,8 ):
16
16
x = 0 #int.from_bytes(uos.urandom(1), 1)
17
17
y = int .from_bytes (uos .urandom (1 ), 1 )
18
18
if (x < ugfx .width ()) and (y < ugfx .height ()):
19
19
ugfx .string (x , y , s + s + s , "Roboto_Regular12" , c )
20
20
ugfx .flush ()
21
21
print ("done." )
22
-
22
+
23
23
def draw_name (x ,y ,name ):
24
24
print ("Drawing name " + name )
25
25
for i in range (1 ,5 ):
@@ -34,7 +34,7 @@ def draw_name(x,y,name):
34
34
ugfx .string (x , y , name , "PermanentMarker22" , ugfx .BLACK )
35
35
print ("done." )
36
36
ugfx .flush ()
37
-
37
+
38
38
def show_names ():
39
39
global names
40
40
c = False
@@ -68,6 +68,6 @@ def main():
68
68
ugfx .input_attach (ugfx .BTN_START , action_exit )
69
69
fill_screen_with_crap (ugfx .BLACK )
70
70
show_names ()
71
-
71
+
72
72
while (True ):
73
73
main ()
0 commit comments