mirror of https://github.com/MLXXXp/Arduboy2.git
Change indenting and rearrange audio.cpp
Only cosmetic changes. No functional changes.
This commit is contained in:
parent
c0f04bcb92
commit
2c023b30ef
|
@ -15,21 +15,16 @@ void ArduboyAudio::on()
|
||||||
audio_enabled = true;
|
audio_enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ArduboyAudio::enabled()
|
|
||||||
{
|
|
||||||
return audio_enabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ArduboyAudio::off()
|
void ArduboyAudio::off()
|
||||||
{
|
{
|
||||||
audio_enabled = false;
|
audio_enabled = false;
|
||||||
// shut off audio pins
|
// shut off audio pins
|
||||||
#ifdef ARDUBOY_10
|
#ifdef ARDUBOY_10
|
||||||
pinMode(PIN_SPEAKER_1, INPUT);
|
pinMode(PIN_SPEAKER_1, INPUT);
|
||||||
pinMode(PIN_SPEAKER_2, INPUT);
|
pinMode(PIN_SPEAKER_2, INPUT);
|
||||||
#else
|
#else
|
||||||
pinMode(PIN_SPEAKER_1, INPUT);
|
pinMode(PIN_SPEAKER_1, INPUT);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArduboyAudio::saveOnOff()
|
void ArduboyAudio::saveOnOff()
|
||||||
|
@ -43,3 +38,7 @@ void ArduboyAudio::begin()
|
||||||
on();
|
on();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ArduboyAudio::enabled()
|
||||||
|
{
|
||||||
|
return audio_enabled;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue