Gugen展示版
Fork of MagneWave by
MagneWave.h
- Committer:
- doctorura
- Date:
- 2013-11-02
- Revision:
- 3:500b992880b3
- Parent:
- 0:5a700113dd87
- Child:
- 4:8b4be75fd97a
File content as of revision 3:500b992880b3:
#ifndef MAGNE_WAVE_H #define MAGNE_WAVE_H #include "mbed.h" #include "SoftMCP4922.h" class MagneWave { public: /* * MagneWave - Magnetone wave player * param * [in] dac: dac address */ MagneWave( SoftMCP4922 *dac ); /* * play - player function * param * [in] wavefile: file pointer */ void play( FILE *wavefile ); private: Timer m_timer; SoftMCP4922 *m_wave_DAC; FILE *m_wavefile; }; #endif // MAGNE_WAVE_H