Simple IDE Examples issue
NWCCTV
Posts: 3,629
Has anyone tried the Piezo sound program in the Simple IDE Examples? I have checked my code numerous times and can not find the problem. I am getting the error "expected } before numeric constant" on line 3 where the groups of 4 numbers are placed. Is it me or is there a problem with the example code???? Note, My Piezo is on Pin 0.
Here's my code:
Here's my code:
#include "simpletools.h" // Include simpletools int note[]= {1047, 1175, 1319, 1397, 1568. 1760, 1976, 2093}; int main() { for(int i = 0; i < 8; i++) { freqout(0, 500, note[i]); pause(68); } }
Comments