Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <pic.h>
- #include "lcd.h"
- void
- main(void)
- {
- 4ANSEL = 0x00; // Set PORT AN0 to AN7 digital I/O
- ANSELH = 0x00; // Set PORT AN8 to AN11 as Digital I/O
- lcd_init();
- lcd_goto(0); // select first line
- lcd_puts("It's Working");
- lcd_goto(0x40); // Select second line
- lcd_puts("No Smoke (-_-)");
- for(;;);
- }
Advertisement
Add Comment
Please, Sign In to add comment