Play

Name
Play

Syntax
Play(pin, *notes, vol); Play(u8 pin, const u8 *notes, u8 vol); pin number where buzzer is connected (11 or 12) Tone and sound use PWM, the speaker must be connected to a PWM pin. Pinguino x5(k)50   : 11, 12          (CCP1, CCP2) Pinguino 47J53     : 4, 5, 6, 7, 17  (CCP4, CCP5, CCP6, CCP7, CCP8) PIC32 Olimex Micro : 10, 11, 12, 13  (OC2, OC3, OC4, OC5) Other chips are unknown array of notes to play Romance Notes {DO,DOd,RE,REd,MI,FA,FAd,SOL,SOLd,LA,LAd,SI,DO_} English Notes {C,Cs,D,Ds,E,F,Fs,G,Gs,A,As,B,C_}
 * pin:
 * *notes

Volume from 0 to 10
 * volume

Comments

 * Since Beta 9.5