7# define min(a,b) a<b?a:b
11# define max(a,b) a>b?a:b
25# define INPUT_PULLUP 0x05
32namespace arduino_vs1053 {
39void digitalWrite(uint8_t, uint8_t);
40int digitalRead(uint8_t);
41void pinMode(uint8_t, uint8_t);
42long map(
long x,
long in_min,
long in_max,
long out_min,
long out_max) {
43 return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;