Buzzer configuration
1、Buzzer configuration
- FindMy requires an external buzzer if it supports play sound. At present, the external is the SD116 buzzer chip, please refer to the specification for details:
/docs/hw/SD116_V1.5.pdf. two GPIO control signals and one PWM need to be configured.
The GPIO control signal is configured through the GPIO_EN1 and GPIO_EN2 macros (the default configuration is 0x05 and 0x04, corresponding to GPIO5 and GPIO4), and the volume is controlled
The GPIO used by PWM is configured by GPIO_PWM this macro (the default configuration is 0x14, corresponding to GPIO12)