File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,27 +61,39 @@ namespace microdata {
6161 ] ;
6262
6363
64- let pauseLoop = false ;
6564
6665 let i = 0 ;
6766 while ( true ) {
68- if ( ! pauseLoop ) {
69- basic . showNumber ( i % 10 )
70- Screen . fill ( i % 16 )
71-
72- const img = icons . get ( imgs [ i % imgs . length ] )
73- Screen . drawTransparentImage (
74- img ,
75- ( screen ( ) . width >> 1 ) - ( img . width >> 1 ) ,
76- ( screen ( ) . height >> 1 ) - ( img . height >> 1 )
77- )
78-
79- i ++ ;
80- } else {
81- Screen . fill ( 1 )
82- basic . pause ( 3000 )
83- pauseLoop = false ;
84- }
67+ // basic.showNumber(i % 10)
68+ Screen . fill ( i % 16 )
69+
70+ const img = icons . get ( imgs [ i % imgs . length ] )
71+ Screen . drawTransparentImage (
72+ img ,
73+ ( screen ( ) . width >> 2 ) - 5 ,
74+ ( screen ( ) . height >> 2 ) - 5
75+ )
76+
77+ Screen . drawTransparentImage (
78+ img ,
79+ ( screen ( ) . width >> 2 ) + ( screen ( ) . width >> 1 ) - 5 ,
80+ ( screen ( ) . height >> 2 ) - 5
81+ )
82+
83+ Screen . drawTransparentImage (
84+ img ,
85+ ( screen ( ) . width >> 2 ) - 5 ,
86+ ( screen ( ) . height >> 2 ) + ( screen ( ) . height >> 1 ) - 5
87+ )
88+
89+ Screen . drawTransparentImage (
90+ img ,
91+ ( screen ( ) . width >> 2 ) + ( screen ( ) . width >> 1 ) - 5 ,
92+ ( screen ( ) . height >> 2 ) + ( screen ( ) . height >> 1 ) - 5
93+ )
94+
95+ basic . pause ( 40 )
96+ i ++ ;
8597 }
8698 }
8799
Original file line number Diff line number Diff line change 77 "radio" : " *" ,
88 "microphone" : " *" ,
99 "datalogger" : " *" ,
10- "user-interface-base" : " github:microbit-apps/user-interface-base#91e9a211f59c42ec947857a945aaa6f4aeea692b " ,
10+ "user-interface-base" : " github:microbit-apps/user-interface-base#0ea776ce7c0ff4050c34e44e28e027ec4ecb0b42 " ,
1111 "jacdac" : " github:microsoft/pxt-jacdac#v1.9.28" ,
1212 "jacdac-light-level" : " github:microsoft/pxt-jacdac/light-level#v1.9.28" ,
1313 "jacdac-soil-moisture" : " github:microsoft/pxt-jacdac/soil-moisture#v1.9.28" ,
You can’t perform that action at this time.
0 commit comments