Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Maybe you forgot to hookup a speaker ? It needs to go on RB1 or RB4 Pin 7 or 8 on CON8Sorry to say 3v0 seems to not work for me...
the sound is so faint its not even funny. I tried 3 speakers. They were 1 head phone, the second was a speaker from a Nintendo DS and the third was my surround sound system lol
non played the sound well or loud enough to be worth it.
void interrupt_low(void)
{
if (INTCONbits.T0IF) {
TMR0L = beat_speed;
if (TMR0Count)
TMR0Count--;
INTCONbits.T0IF = 0;
}
if (PIR1bits.TMR1IF) {
if (beep)
{
//*********** following 4 lines are changed ***************/
if (TONE&0x02)
TONE=0b00010000; // RB4 HI RB1 LO
else
TONE = 0b00000010; // RB4 LO RB1 HI
}
else
TONE = 0;
TMR1H = preloadTMR1H;
TMR1L = preloadTMR1L;
PIR1bits.TMR1IF = 0; /* Clear Flag */
}
}