// From: http://tinyclr.com./codeshare/entry/269
// This is for FEZ Panda II
// MusicShield musicShield = new MusicShield(SPI.SPI_module.SPI1, FEZ_Pin.Digital.An4, FEZ_Pin.Digital.An5, FEZ_Pin.Digital.Di4);
// This is for FEZ Bee?
MusicShield musicShield = new MusicShield(SPI.SPI_module.SPI1, (Cpu.Pin)0x21, (Cpu.Pin)0x04, (Cpu.Pin)0x2F);
Debug.Print("Testing Playback...");
FileStream fs = new System.IO.FileStream(@ "\SD\song.wma", System.IO.FileMode.Open);
musicShield.Play(fs);
Thread.Sleep(Timeout.Infinite);
I am trying to use the MusicShield with the Cerbuino Bee. I have the code successfully working with the Panda II, but with the Cerbunio Bee, the music plays for about 1 second and then stops. While debugging, the code just stops. VS says the project is still running. Nothing in the output states the thread has exited. The main loop is in an infinate loop. It appears the code just freezes. If I step through the code, it just freezes.
Am I using the right pins? Is the Music Module supported? How different is the music module from the music shield?