Hi!
I'm looking at some sode, and I found something I don't quite understand.
Before the setup() function, this is showed:
typedef struct SettingsType {
boolean standby;
byte source;
byte displayMode;
signed char currentPreset;
int presetFrequency[PRESETS];
int currentFrequency;
int currentVolume;
int bass; // <-- right here
int treble;
int balance;
};
the the function to sett the bass value, the guy that have programmed it is writing intBass instead of Bass, showed below:
void setBass(int intBass) {
byte bytBass;
settings.bass = constrain(intBass, -7, 7);
if (settings.bass < 0) bytBass = 7 - abs(settings.bass);
else bytBass = 15 - settings.bass;
PT2314Write(COMMAND_BASS_CONTROL, bytBass);
}
Why and what? is there a diffrence?