Skip to content

Commit

Permalink
Merge pull request #123 from bmourit/patch-1
Browse files Browse the repository at this point in the history
Remove map and makeWord from WMath.cpp
  • Loading branch information
maxgerhardt authored Apr 19, 2024
2 parents c343ce4 + 5bdda0a commit 8f14963
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cores/arduino/WMath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,3 @@ extern long random(long howsmall, long howbig)

return random(diff) + howsmall;
}

extern long map(long x, long in_min, long in_max, long out_min, long out_max)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

extern uint16_t makeWord(uint16_t w)
{
return w ;
}

extern uint16_t makeWord(uint8_t h, uint8_t l)
{
return (h << 8) | l ;
}

0 comments on commit 8f14963

Please sign in to comment.