Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Monster M4sk Pin 20
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Monster M4sk Pin 20

by michaelc72 on Sat Oct 23, 2021 3:58 am

Hi,

I have a Monster M4sk and have connected a small 1w speaker to it via the Molex Picoblade connector. The documentation for Monster M4sk mentions enabling the speaker using the SPEAKER ENABLE pin (pin 20). Where is this PIN? How do I enable it?

Thanks!

michaelc72
 
Posts: 4
Joined: Sat Oct 09, 2021 1:12 am

Re: Monster M4sk Pin 20

by dastels on Sat Oct 23, 2021 11:52 am

Depending on language (for the Mask I'm assuming C++) set the mode of pin 20 to output and its value to HIGH. If you're using CircuitPython create a DigitalInOut on board.SPEAKER_ENABLE and set its direction to OUTPUT and value to True.

Dave

dastels
 
Posts: 7935
Joined: Tue Oct 20, 2015 3:22 pm

Re: Monster M4sk Pin 20

by michaelc72 on Mon Oct 25, 2021 2:28 am

Thanks for the help Dave! I'm using CircuitPython.

I'm sorry, I'm a noob when it comes to CircuitPython. Are there any examples of how to do what you mention? I am currently using Bootloader 3.13 along with the M4 eyes firmware (M4SKEYES.UF2).

Thanks!

michaelc72
 
Posts: 4
Joined: Sat Oct 09, 2021 1:12 am

Re: Monster M4sk Pin 20

by dastels on Mon Oct 25, 2021 10:01 am

So you're working in C++ then. The M4Eyes firmware is a complete program... you can't use it with CircuitPython.

Dave

dastels
 
Posts: 7935
Joined: Tue Oct 20, 2015 3:22 pm

Re: Monster M4sk Pin 20

by michaelc72 on Mon Oct 25, 2021 12:17 pm

Ok, I understand. I'm assuming the headphone jack will not work with the M4Eyes firmware either, correct?

I'm somewhat familiar with C. Is the M4Eyes source code available? If not, is there no way to have audio when using the M4Eyes firmware?

Thanks!

michaelc72
 
Posts: 4
Joined: Sat Oct 09, 2021 1:12 am

Re: Monster M4sk Pin 20

by dastels on Mon Oct 25, 2021 1:14 pm

Yes, it's available and designed to be extendable. It depends on what you want to do with the headphone jack.

See https://learn.adafruit.com/adafruit-monster-m4sk-eyes, specifically, https://learn.adafruit.com/adafruit-monster-m4sk-eyes/compiling-from-source-code.

Dave

dastels
 
Posts: 7935
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.