@@ -58,7 +58,7 @@ def flag_wales(self):
58
58
// len (self ._zip )]]
59
59
### Off substitues for white on top left
60
60
for idx in range (len (self ._mdisplaylist )):
61
- self ._mdisplaylist [idx ] = 0 if idx in (0 , 5 ) else 128
61
+ self ._mdisplaylist [idx ] = 0 if idx in (0 , 5 ) else 7 ### 7 out of 9
62
62
63
63
return self .HALO_CHANGED | self .MICROBIT_CHANGED
64
64
@@ -93,8 +93,8 @@ def _wind_ripple(self, ripple_time, total, changes_):
93
93
if idx != tophalf_idx :
94
94
r , g , b = self ._zip [tophalf_idx ]
95
95
self ._zip [tophalf_idx ] = (min (255 , max (0 , round (r * col_p1 ))),
96
- min (255 , max (0 , round (g * col_p1 ))),
97
- min (255 , max (0 , round (b * col_p1 ))))
96
+ min (255 , max (0 , round (g * col_p1 ))),
97
+ min (255 , max (0 , round (b * col_p1 ))))
98
98
99
99
if changes_ & self .MICROBIT_CHANGED :
100
100
### Modulate micro:bit display using values calculated per column
@@ -103,7 +103,7 @@ def _wind_ripple(self, ripple_time, total, changes_):
103
103
moving_x = 0 - led_x + shift_x
104
104
col_p1 = self ._wind_ripple_mod (moving_x ) / 1.9 + 1.0
105
105
for y_off in range (0 , 25 , 5 ):
106
- self ._mdisplaylist [m_idx + y_off ] = min (255 ,
106
+ self ._mdisplaylist [m_idx + y_off ] = min (9 ,
107
107
max (0 ,
108
108
round (self ._mdisplaylist [m_idx + y_off ]
109
109
* col_p1 )))
0 commit comments