Fixes #171 Under Windows, it is very hard to make a symlink and by default git won't make one to the Arduino API directory, causing annoying build errors. Avoid the issue by duplicating the ArduinoAPI directory explicitly and using CI to verify that there are no differences between the two.
10 lines
301 B
C++
10 lines
301 B
C++
#include "Common.h"
|
|
|
|
/* C++ prototypes */
|
|
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;
|
|
}
|
|
|
|
uint16_t makeWord(uint16_t w) { return w; }
|
|
uint16_t makeWord(uint8_t h, uint8_t l) { return (h << 8) | l; } |