Skip to content

Commit 44a75bb

Browse files
committed
codal_app: Disable all audio connections by default.
1 parent 523ec02 commit 44a75bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/codal_app/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ int main() {
7070

7171
uBit.display.setBrightness(255);
7272

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.
75+
uBit.audio.setPinEnabled(false);
76+
uBit.audio.setSpeakerEnabled(false);
77+
7378
mp_main();
7479
return 0;
7580
}

0 commit comments

Comments
 (0)