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.

39 lines
918 B

  1. /*
  2. * This file is subject to the terms of the GFX License. If a copy of
  3. * the license was not distributed with this file, you can obtain one at:
  4. *
  5. * http://ugfx.org/license.html
  6. */
  7. #ifndef _ST7565_H
  8. #define _ST7565_H
  9. #define ST7565_CONTRAST 0x81
  10. #define ST7565_ALLON_NORMAL 0xA4
  11. #define ST7565_ALLON 0xA5
  12. #define ST7565_POSITIVE_DISPLAY 0xA6
  13. #define ST7565_INVERT_DISPLAY 0xA7
  14. #define ST7565_DISPLAY_OFF 0xAE
  15. #define ST7565_DISPLAY_ON 0xAF
  16. #define ST7565_LCD_BIAS_7 0xA3
  17. #define ST7565_LCD_BIAS_9 0xA2
  18. #define ST7565_ADC_NORMAL 0xA0
  19. #define ST7565_ADC_REVERSE 0xA1
  20. #define ST7565_COM_SCAN_INC 0xC0
  21. #define ST7565_COM_SCAN_DEC 0xC8
  22. #define ST7565_START_LINE 0x40
  23. #define ST7565_PAGE 0xB0
  24. #define ST7565_COLUMN_MSB 0x10
  25. #define ST7565_COLUMN_LSB 0x00
  26. #define ST7565_RMW 0xE0
  27. #define ST7565_RESISTOR_RATIO 0x20
  28. #define ST7565_POWER_CONTROL 0x28
  29. #define ST7565_RESET 0xE2
  30. #endif /* _ST7565_H */