@@ -53,7 +53,7 @@ def step(self):
5353            if  time .monotonic_ns () >  self .stop_time :
5454                self .state  =  BRAKING 
5555        elif  self .state  ==  BRAKING :
56-             # More quickly lose speed when baking , down to speed 7 
56+             # More quickly lose speed when braking , down to speed 7 
5757            self .vel  =  max (self .vel  *  85  //  100 , 7 )
5858
5959        # Advance the wheel according to the velocity, and wrap it around 
@@ -72,7 +72,6 @@ def step(self):
7272        if  self .state  ==  BRAKING  and  self .vel  ==  7  and  yyy  <  4 :
7373            self .pos  =  off  *  24  *  16 
7474            self .vel  =  0 
75-             yy  =  0 
7675            self .state  =  STOPPED 
7776
7877        # Move the displayed tiles to the correct height and make sure the 
@@ -87,11 +86,11 @@ def step(self):
8786    def  kick (self , i ):
8887        self .state  =  RUNNING 
8988        self .vel  =  random .randint (256 , 320 )
90-         self .stop_time  =  time .monotonic_ns () +  3000000000  +  i  *  350000000 
89+         self .stop_time  =  time .monotonic_ns () +  3_000_000_000  +  i  *  350_000_000 
9190
9291# Our fruit machine has 3 wheels, let's create them with a correct horizontal 
9392# (x) offset and arbitrary vertical (y) offset. 
94- g  =  displayio .Group (max_size = 3 )
93+ g  =  displayio .Group ()
9594wheels  =  []
9695for  idx  in  range (3 ):
9796    wheel  =  Wheel ()
@@ -119,7 +118,7 @@ def all_stopped():
119118
120119# Here's the main loop 
121120while  True :
122-     # Refresh the dislpay  (doing this manually ensures the wheels move 
121+     # Refresh the display  (doing this manually ensures the wheels move 
123122    # together, not at different times) 
124123    display .refresh (minimum_frames_per_second = 0 )
125124    if  all_stopped ():
0 commit comments