For MAX323630FTHR: Plays a WAV file in the SD card. Interfaced through serial port using puTTY or powershell.

Dependencies:   USBMSD_BD SDFileSystem max32630fthr USBDevice

Committer:
Lugs
Date:
Sat Nov 09 01:33:17 2019 +0000
Revision:
3:2ddba0146fd8
Removed demoboard library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Lugs 3:2ddba0146fd8 1 #ifndef _NOTEPLAYER_H_
Lugs 3:2ddba0146fd8 2 #define _NOTEPLAYER_H_
Lugs 3:2ddba0146fd8 3
Lugs 3:2ddba0146fd8 4 typedef enum : unsigned char {
Lugs 3:2ddba0146fd8 5 C2,Cs2,D2,Ds2,E2,F2,Fs2,G2,Gs2,A2,As2,B2, //C2:0
Lugs 3:2ddba0146fd8 6 C3,Cs3,D3,Ds3,E3,F3,Fs3,G3,Gs3,A3,As3,B3, //C3:12
Lugs 3:2ddba0146fd8 7 C4,Cs4,D4,Ds4,E4,F4,Fs4,G4,Gs4,A4,As4,B4, //C4:24
Lugs 3:2ddba0146fd8 8 C5,Cs5,D5,Ds5,E5,F5,Fs5,G5,Gs5,A5,As5,B5, //C5:36
Lugs 3:2ddba0146fd8 9 C6,Cs6,D6,Ds6,E6,F6,Fs6,G6,Gs6, //C6:48
Lugs 3:2ddba0146fd8 10 rest,
Lugs 3:2ddba0146fd8 11 END
Lugs 3:2ddba0146fd8 12 } pitchname;
Lugs 3:2ddba0146fd8 13
Lugs 3:2ddba0146fd8 14 typedef struct {
Lugs 3:2ddba0146fd8 15 unsigned char length;
Lugs 3:2ddba0146fd8 16 pitchname pitch;
Lugs 3:2ddba0146fd8 17 } note;
Lugs 3:2ddba0146fd8 18
Lugs 3:2ddba0146fd8 19 int pitch2freq(pitchname pitch);
Lugs 3:2ddba0146fd8 20
Lugs 3:2ddba0146fd8 21 #endif