mirror of
https://github.com/Kugelschieber/arduino-c.git
synced 2026-01-18 11:00:26 +00:00
Started implementing EEPROM writer/reader for AT28C256.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "util.h"
|
||||
|
||||
float map(float value, float fromLow, float fromHigh, float toLow, float toHigh){
|
||||
float map(float value, float fromLow, float fromHigh, float toLow, float toHigh) {
|
||||
return fromLow+((toHigh-toLow)/(fromHigh-fromLow))*(value-fromLow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user