// Sound - Tutorial 20

// Sound_Init(); - specifies port and pin

// Sound_Play(1000, 10);


unsigned int i;


void init(void)

{

TRISIO = 0b00111011;

ADCON0 = 0;

ANSEL = 0;

}


void main() {

Sound_Init(&GPIO, 2);

while(1){

for(i=0; i<10000; i = i + 150)

{

Sound_Play(i, 1000);

}

}

}