Closed h1aji closed 2 years ago
The map function maps the values from 0-100 to 0-254 (= 0xFE ), see https://www.arduino.cc/reference/de/language/functions/math/map/ So basically both funtions do the same. Using a range from 0-100 is of course coarser, but imho is more intuitive and does not really make a difference.
I was comparing setVolume
https://github.com/baldram/ESP_VS1053_Library/blob/f501eb734f0517f2c079369024201667c6471fee/src/VS1053.cpp#L189-L218
with the code from Adafruit
And found that maximum value for setVolume is 254. So, which value would be correct in this case?