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 година
12345678910111213141516171819202122232425262728293031323334353637
  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. extern void lcdHome (int fd) ;
  28. extern void lcdClear (int fd) ;
  29. extern void lcdPosition (int fd, int x, int y) ;
  30. extern void lcdPutchar (int fd, uint8_t data) ;
  31. extern void lcdPuts (int fd, char *string) ;
  32. extern void lcdPrintf (int fd, char *message, ...) ;
  33. extern int lcdInit (int rows, int cols, int bits, int rs, int strb,
  34. int d0, int d1, int d2, int d3, int d4, int d5, int d6, int d7) ;