firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Buzzer menu

Open ben7147 opened this issue 6 months ago • 3 comments

Proposed Changes

Added a buzzer menu to Bruce where you can set volume, frequency.

Features added: Frequency generator (plays a frequency f.e: 11600hz) Nokia (old Nokia phone's ringtone) Volume (change volume: 100, 50, 20, 10%) Config (Change frequency)

Types of Changes

Frequency generator (plays a frequency f.e: 11600hz) Nokia (old Nokia phone's ringtone) Volume (change volume: 100, 50, 20, 10%) Config (Change frequency)

Verification

Tried on m5stickc plus2

Testing

Yes, on m5 stickc plus2

Linked Issues

  • It wont work on devices with speakers like t embed cc1101 --> possible solution would be f.e: add an "if-defined" to main-menu

  • 'Nokia' ringtone plays on max volume for some reason

User-Facing Change

NONE

Further Comments

20250528_235815 20250528_235806 20250528_235755 20250528_235744 20250528_235727

ben7147 avatar May 28 '25 22:05 ben7147

Cool, I would like a mini player with ringtones from 90s phones!

Opolopopolo avatar May 29 '25 10:05 Opolopopolo

just a feedback, we will close the issues for 1.10, to release 1.10.1 and after that will work on new features for 1.11 (or 2.0, we din't know yet)

bmorcelli avatar May 29 '25 21:05 bmorcelli

Okay

ben7147 avatar May 30 '25 05:05 ben7147

Love this hope it gets merged

quotequack avatar May 31 '25 13:05 quotequack

you should add a DTMF sound generator

DevEclipse1 avatar May 31 '25 15:05 DevEclipse1

Whats that?

ben7147 avatar May 31 '25 15:05 ben7147

I've made this a while ago https://github.com/pr3y/Bruce/blob/main/sd_files/interpreter/dtmf.js

Rtttl ringtones are already supported from txt files https://github.com/pr3y/Bruce/blob/8a1ab3ec9ae9e9d83c1887c3bbc1d7c73c16a2e6/src/modules/others/audio.cpp#L73

eadmaster avatar Jun 01 '25 04:06 eadmaster

I could add that too, if needed

ben7147 avatar Jun 02 '25 12:06 ben7147

this is something that should be made in a JavaScript environment..

I do't think Bruce needs one more menu to beep all over the place using flash memory for something not useful for the project itself..

bmorcelli avatar Jun 02 '25 19:06 bmorcelli

Okay, i will keeps this branch tho for people who would want to add it.

ben7147 avatar Jun 02 '25 19:06 ben7147