We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4575960 commit 9b3ca07Copy full SHA for 9b3ca07
examples/hid_simple_gamepad.py
@@ -33,6 +33,7 @@
33
ax = analogio.AnalogIn(board.A4)
34
ay = analogio.AnalogIn(board.A5)
35
36
+
37
# Equivalent of Arduino's map() function.
38
def range_map(x, in_min, in_max, out_min, out_max):
39
return (x - in_min) * (out_max - out_min) // (in_max - in_min) + out_min
0 commit comments