Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent 4575960 commit 9b3ca07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/hid_simple_gamepad.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
ax = analogio.AnalogIn(board.A4)
ay = analogio.AnalogIn(board.A5)


# Equivalent of Arduino's map() function.
def range_map(x, in_min, in_max, out_min, out_max):
return (x - in_min) * (out_max - out_min) // (in_max - in_min) + out_min
Expand Down

0 comments on commit 9b3ca07

Please sign in to comment.