@@ -87,10 +87,10 @@ namespace user_interface_base {
8787 } )
8888
8989 // timeout:
90- for ( let timeChunk = 0 ; timeChunk < 500 ; timeChunk += 25 ) {
90+ for ( let timeChunk = 0 ; timeChunk < 500 ; timeChunk += 10 ) {
9191 if ( ackReceived )
9292 break
93- basic . pause ( 25 )
93+ basic . pause ( 10 )
9494 }
9595
9696 // radio.onReceivedValue(_ => { }) // reset radio
@@ -99,12 +99,12 @@ namespace user_interface_base {
9999
100100 // bitmap information:
101101 radio . sendString ( name + "," + bitmap . height )
102- basic . pause ( 25 )
102+ basic . pause ( 10 )
103103
104104 basic . showString ( "W" )
105105 while ( waitForAck ( ) ) {
106106 radio . sendString ( name + "," + bitmap . height ) ;
107- basic . pause ( 25 )
107+ basic . pause ( 10 )
108108 }
109109 basic . showString ( "R" )
110110
@@ -117,14 +117,14 @@ namespace user_interface_base {
117117
118118 // basic.showString("B")
119119 radio . sendBuffer ( rowBuffer ) ;
120- basic . pause ( 25 )
120+ basic . pause ( 10 )
121121
122122 while ( waitForAck ( ) ) {
123123 // basic.showString("B")
124124 radio . sendBuffer ( rowBuffer ) ;
125125
126126 // basic.showString("W")
127- basic . pause ( 25 )
127+ basic . pause ( 10 )
128128 }
129129
130130 // basic.showString("A")
@@ -136,7 +136,7 @@ namespace user_interface_base {
136136
137137 public static drawTransparentImage ( from : Bitmap , x : number , y : number ) {
138138 // Screen.image.drawTransparentBitmap(from, Screen.x(x), Screen.y(y));
139- basic . showString ( "S" )
139+ // basic.showString("S")
140140 let b = Buffer . create ( from . width / 8 ) ;
141141
142142 for ( let row = 0 ; row < from . height ; row ++ ) {
@@ -231,7 +231,7 @@ namespace user_interface_base {
231231 c : number
232232 ) {
233233 // Screen.image.drawRect(Screen.x(x), Screen.y(y), width, height, c)
234- basic . showString ( "S" ) ;
234+ // basic.showString("S");
235235 // basic.showNumber(SCREEN_FN_ID_DRAW_RECT);
236236 radio . sendBuffer ( Buffer . fromArray ( [ SCREEN_FN_ID_DRAW_RECT , x + Screen . HALF_WIDTH , y + Screen . HALF_HEIGHT , width , height , c ] ) ) ;
237237 basic . clearScreen ( )
@@ -253,7 +253,7 @@ namespace user_interface_base {
253253 public static fill (
254254 c : number
255255 ) {
256- basic . showString ( "S" ) ;
256+ // basic.showString("S");
257257 // basic.showNumber(SCREEN_FN_ID_FILL);
258258 radio . sendBuffer ( Buffer . fromArray ( [ SCREEN_FN_ID_FILL , c ] ) ) ;
259259 basic . clearScreen ( )
@@ -267,7 +267,7 @@ namespace user_interface_base {
267267 c : number
268268 ) {
269269 // basic.showNumber(SCREEN_FN_ID_FILL_RECT);
270- basic . showString ( "S" ) ;
270+ // basic.showString("S") ;
271271
272272 radio . sendBuffer ( Buffer . fromArray ( [ SCREEN_FN_ID_FILL_RECT , x + Screen . HALF_WIDTH , y + Screen . HALF_HEIGHT , width , height , c ] ) )
273273 basic . clearScreen ( )
@@ -459,7 +459,7 @@ namespace user_interface_base {
459459 font ?: bitmaps . Font ,
460460 offsets ?: texteffects . TextEffectState [ ]
461461 ) {
462- basic . showString ( "P" ) ;
462+ // basic.showString("P");
463463 radio . sendString ( text ) ;
464464
465465 const c : number = ( color == null ) ? 0 : color ;
@@ -473,7 +473,7 @@ namespace user_interface_base {
473473 // font,
474474 // offsets
475475 // )
476- basic . clearScreen ( )
476+ // basic.clearScreen()
477477 }
478478 }
479479}
0 commit comments