Fix encoder direction inversion being ignored
This commit is contained in:
		
				
					committed by
					
						
						Kyle Brown
					
				
			
			
				
	
			
			
			
						parent
						
							0f9eb196c2
						
					
				
				
					commit
					d70de71c5f
				
			@@ -227,8 +227,7 @@ class EncoderHandler(Module):
 | 
			
		||||
 | 
			
		||||
                    # Else fall back to GPIO
 | 
			
		||||
                    else:
 | 
			
		||||
                        gpio_pins = pins[:3]
 | 
			
		||||
                        new_encoder = GPIOEncoder(*gpio_pins)
 | 
			
		||||
                        new_encoder = GPIOEncoder(*pins)
 | 
			
		||||
 | 
			
		||||
                    # In our case, we need to define keybord and encoder_id for callbacks
 | 
			
		||||
                    new_encoder.on_move_do = lambda x, bound_idx=idx: self.on_move_do(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user