How to disable internal speaker (Circuit Playground)

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
R99
 
Posts: 2
Joined: Fri Aug 13, 2021 7:08 am

How to disable internal speaker (Circuit Playground)

Post by R99 »

Hello,

The Circuit Playground Guided Tour mentions you can turn off the internal speaker using the "shutdown control".
https://learn.adafruit.com/adafruit-cir ... uided-tour

However, I can't find guidance on how to implement this in code.

Could someone please point me in the right direction?

I want to use the Audio Pad for output but don't want the internal speaker playing at the same time.
I want to use CircuitPython.

Thanks

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to disable internal speaker (Circuit Playground)

Post by dastels »

See the audio example on https://learn.adafruit.com/adafruit-cir ... -audio-out:

Code: Select all

# Enable the speaker
speaker_enable = digitalio.DigitalInOut(board.SPEAKER_ENABLE)
speaker_enable.direction = digitalio.Direction.OUTPUT
speaker_enable.value = True
Dave

User avatar
R99
 
Posts: 2
Joined: Fri Aug 13, 2021 7:08 am

Re: How to disable internal speaker (Circuit Playground)

Post by R99 »

Thanks.

Setting that value to False does indeed disable the speaker without disabling the audio pad, which is what I want.

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”