/Modules/HumanInterfaces/LCD2L4P02A/SW/PIC/PIC16F887/main.c |
---|
9,6 → 9,23 |
#define LCD_DATA7 PIN_D7 |
#include <lcd.c> |
#define BEEPER PIN_B5 |
int beep() |
{ |
unsigned int i; |
i=0; |
for(i=0;i<100;i++) |
{ |
output_low(BEEPER); |
delay_ms(1); |
output_high(BEEPER); |
delay_ms(1); |
} |
} |
void main() |
{ |
int16 i=0; |
38,7 → 55,7 |
lcd_gotoxy(1,2); |
printf(lcd_putc,"%c %x ",i,i); |
i++; |
beep(); |
Delay_ms(500); |
} |