Created
October 2, 2016 12:30
-
-
Save mrizvic/cc8400e6524cdb6503efd8d7eb4f1c0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### https://www.arduino.cc/en/Reference/Map | |
### I find this useful | |
def remap(x, in_min, in_max, out_min, out_max): | |
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment