You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 jaren geleden
12 jaren geleden
12 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * lcd.h:
  3. * Text-based LCD driver.
  4. * This is designed to drive the parallel interface LCD drivers
  5. * based in the Hitachi HD44780U controller and compatables.
  6. *
  7. * Copyright (c) 2012 Gordon Henderson.
  8. ***********************************************************************
  9. * This file is part of wiringPi:
  10. * https://projects.drogon.net/raspberry-pi/wiringpi/
  11. *
  12. * wiringPi is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Lesser General Public License as published by
  14. * the Free Software Foundation, either version 3 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * wiringPi is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Lesser General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Lesser General Public License
  23. * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
  24. ***********************************************************************
  25. */
  26. #define MAX_LCDS 8
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. extern void lcdHome (int fd) ;
  31. extern void lcdClear (int fd) ;
  32. extern void lcdPosition (int fd, int x, int y) ;
  33. extern void lcdPutchar (int fd, uint8_t data) ;
  34. extern void lcdPuts (int fd, char *string) ;
  35. extern void lcdPrintf (int fd, char *message, ...) ;
  36. extern int lcdInit (int rows, int cols, int bits, int rs, int strb,
  37. int d0, int d1, int d2, int d3, int d4, int d5, int d6, int d7) ;
  38. #ifdef __cplusplus
  39. }
  40. #endif