Files
Last update 2 years 9 months
by
eddyluursema
FilesSpeedometerOLED_Scale | |
---|---|
.. | |
OLED_Scale.ino | |
ResetButton.ino | |
ScaleButton.ino | |
controlScale_Functions.ino |
controlScale_Functions.ino/* Function */ int setNextScale(int oldScaleSetting) { int returnValue; switch (oldScaleSetting) { case G: returnValue = O; break; case O: returnValue = S; break; case S: returnValue = H0; break; case H0: returnValue = N; break; case N: returnValue = Z; break; case Z: returnValue = G; break; } return returnValue; } String printScale(int currentScale) { String scaleLetter; switch (currentScale) { case G: scaleLetter = "G"; break; case O: scaleLetter = "O"; break; case S: scaleLetter = "S"; break; case H0: scaleLetter = "H0"; break; case N: scaleLetter = "N"; break; case Z: scaleLetter = "Z"; break; } return scaleLetter; }