flitjes

Untitled

Mar 4th, 2013
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. /*
  2.  *  LCD interface header file
  3.  *  See lcd.c for more info
  4.  */
  5.  
  6. /* write a byte to the LCD in 4 bit mode */
  7.  
  8. extern void lcd_write(unsigned char);
  9.  
  10. /* Clear and home the LCD */
  11.  
  12. extern void lcd_clear(void);
  13.  
  14. /* write a string of characters to the LCD */
  15.  
  16. extern void lcd_puts(const char * s);
  17.  
  18. /* Go to the specified position */
  19.  
  20. extern void lcd_goto(unsigned char pos);
  21.    
  22. /* intialize the LCD - call before anything else */
  23.  
  24. extern void lcd_init(void);
  25.  
  26. extern void lcd_putch(char);
  27.  
  28. /*  Set the cursor position */
  29.  
  30. #define lcd_cursor(x)   lcd_write(((x)&0x7F)|0x80)
Advertisement
Add Comment
Please, Sign In to add comment