PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

28 lines
965B

  1. /*
  2. ks0108_Arduino.h - Arduino library support for ks0108 and compatable graphic LCDs
  3. Copyright (c)2008 Michael Margolis All right reserved
  4. This is the configuration file for mapping Teensy++ pins to the ks0108 Graphics LCD library
  5. */
  6. #ifndef KS0108_CONFIG_H
  7. #define KS0108_CONFIG_H
  8. #define CSEL1 18 // CS1 Bit
  9. #define CSEL2 19 // CS2 Bit
  10. #define R_W 8 // R/W Bit
  11. #define D_I 9 // D/I Bit
  12. #define EN 7 // EN Bit
  13. #define LCD_CMD_PORT PORTE // pins 8, 9, 18, 19
  14. // these macros map pins to ports using the defines above
  15. // the following should not be changed unless you really know what your doing
  16. #define LCD_DATA_LOW_NBL C // port for low nibble: pins 10-13
  17. #define LCD_DATA_HIGH_NBL C // port for high nibble: pins 14-17
  18. // Teensyduino always optimizes digitialWrite when used with const inputs
  19. #define fastWriteHigh(_pin) (digitalWrite((_pin), HIGH))
  20. #define fastWriteLow(_pin) (digitalWrite((_pin), LOW))
  21. #endif