We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac1c0c commit fb682eaCopy full SHA for fb682ea
src/codal_app/main.cpp
@@ -70,10 +70,10 @@ int main() {
70
71
uBit.display.setBrightness(255);
72
73
- // By default there is no audio output selected. The audio system will select the
74
- // correct pin and/or speaker when any audio related code is first executed.
+ // By default the speaker is enabled but no pin is selected. The audio system will
+ // select the correct pin when any audio related code is first executed.
75
+ uBit.audio.setSpeakerEnabled(true);
76
uBit.audio.setPinEnabled(false);
- uBit.audio.setSpeakerEnabled(false);
77
78
mp_main();
79
return 0;
0 commit comments