ScratchData LogoScratchData
Back to Scrachrulz's profile

Map() function

SCScrachrulz•Created May 16, 2015
Map() function
4
3
144 views
View on Scratch

Instructions

A very simple project that will take one number and convert it to another based on a ratio of two ranges... I basically copied the documented "under the hood" code from Arduino's map() function, and it seems to work great! See inside to do anything, and you're welcome to backpack the script!

Description

Here's some documentation on Arduino's map function, it'll probably explain it better than I can http://www.arduino.cc/en/Reference/Map

Project Details

Project ID62626510
CreatedMay 16, 2015
Last ModifiedSeptember 18, 2021
SharedMay 16, 2015
Visibilityvisible
CommentsAllowed