flitjes

Untitled

Mar 4th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <pic.h>
  2. #include "lcd.h"
  3.  
  4. void
  5. main(void)
  6. {
  7. 4ANSEL = 0x00;        // Set PORT AN0 to AN7 digital I/O
  8.     ANSELH = 0x00;       // Set PORT AN8 to AN11 as Digital I/O    
  9.  
  10.     lcd_init();
  11.     lcd_goto(0);    // select first line
  12.     lcd_puts("It's Working");
  13.     lcd_goto(0x40); // Select second line
  14.     lcd_puts("No Smoke (-_-)");
  15.     for(;;);
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment