lcd.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * lcd.h
  3. *
  4. * Created on: Aug 3, 2016
  5. * Author: sebastian
  6. */
  7. #ifndef LCD_H_
  8. #define LCD_H_
  9. #define MAX_LCDS 8
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. extern void lcdHome (const int fd) ;
  14. extern void lcdClear (const int fd) ;
  15. extern void lcdDisplay (const int fd, int state) ;
  16. extern void lcdCursor (const int fd, int state) ;
  17. extern void lcdCursorBlink (const int fd, int state) ;
  18. extern void lcdSendCommand (const int fd, unsigned char command) ;
  19. extern void lcdPosition (const int fd, int x, int y) ;
  20. extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ;
  21. extern void lcdPutchar (const int fd, unsigned char data) ;
  22. extern void lcdPuts (const int fd, const char *string) ;
  23. extern void lcdPrintf (const int fd, const char *message, ...) ;
  24. extern int lcdInitI (const int rows, const int cols, const int bits,
  25. const int rs, const int strb) ;
  26. extern int lcdInit (void) ;
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. // Pinbelegung für das LCD, an verwendete Pins anpassen
  31. #define LCD_RW 24
  32. #define LCD_RS 27
  33. #define LCD_EN 23
  34. #endif /* LCD_H_ */