stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
419 stars 345 forks source link

Incorporate improvements from @soshial/@tripplet + myself #151

Closed ndoo closed 5 months ago

ndoo commented 2 years ago

Merged a bunch of improvements/fixes from soshial@, and cherry-picked improvements/fixes from tripplet. Added some improvements of my own. Please refer to commits for specifics. Review/feedback welcome.

Duplicates:

Apologies for raising a large PR, but hopefully I was able to add some value, as I have compile-tested and fuctionality-tested the changes on my Freematics ONE+ model B.

ndoo commented 2 years ago

So after changing the volume and frequency (Freematics.cpp), how can I customize it? It sounds the same to me.

Hi there, this is implemented in 51c2548 - telelogger v5: Add customizable startup beep sequence:

The configuration needed is documented in config.h:

#define BEEP_TABLE {2000} /* Hz, each value is a 100ms cycle (use "0" to add gaps) */

E.g.:

#define BEEP_TABLE {1000, 0, 2000, 0, 4000} /* Hz, each value is a 100ms cycle (use "0" to add gaps) */

ndoo commented 2 years ago

Hi, With this code how are we suppose to control the buzzer? Is the original volume the loudest already?

Hi, volume control is out of scope of this PR. The original volume is the loudest possible already.

SpaceCat101 commented 2 years ago

Hi, Do you have any clue how I can adjust the volume of the buzzer?