A simple and very light Arduino library for the FM62429 or M62429P/FP serial data control dual electronics volume chip.
To install it, download the content of the repository in ZIP, open the Arduino IDE, open "Sketch" > "Include Library" > "Add .ZIP Library" and select the ZIP file.
This library is now included in the Arduino Library Manager. You can install it directly in the Arduino IDE by opening the Library Manager and searching for "M62429".
To get started, open the "VolumeSweep" example, included in this library.
Three functions can be called on a M62429 object:
setVolumeBoth(uint8_t attenuation)
: sets the volume of both channelssetVolumeCh1 (uint8_t attenuation)
: only sets the volume of channel 1setVolumeCh2 (uint8_t attenuation)
: only sets the volume of channel 2
attenuation is an integer between 0 and 83, in decibels. 0 is the maximum volume and 83 is the minimum.
This library's license is MIT: licensed works, modifications, and larger works may be distributed under different terms and without source code.