Skip to content

felix1024/Muses72320

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Muses 72320

Arduino library for communicating with the Muses 72320 audio chip. The data sheets can be found here (pdf).

Download

Download the latest release over at the Releases page.

Example

#include <Muses72320.h>

// The address wired into the muses chip (usually 0).
const uint_8 MUSES_ADDRESS = 0;
const int CHIP_SELECT = 10;

Muses72320 Muses(MUSES_ADDRESS, CHIP_SELECT);
int CurrentVolume = -20;

void setup()
{
  // Initialize muses (SPI, pin modes)...
  Muses.begin();

  // Muses initially starts in a muted state, set a volume to enable sound.
  Muses.setVolume(CurrentVolume);

  // These are the default states and could be removed...
  Muses.setZeroCrossing(true);     // Enable zero cross detection. (only if Z/C terminal pin 32 is low)
  Muses.setAttenuationLink(false); // L/R attentuation channels are independent controlled.
  Muses.setGainLink(false);        // L/R gain channels are independent controlled.
}

void loop()
{
  CurrentVolume -= 1;
  if (CurrentVolume < -223)
  {
    CurrentVolume = 0;
  }

  Muses.setVolume(CurrentVolume);
  // Equivalent to 'Muses.setVolume(CurrentVolume, CurrentVolume)' for L/R ch.

  delay(10);
}

Problems

Please post any problems on the Issues page.

License

Please read over the LICENSE file included in the project.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages