// adjusted config-file: ks0108_Teensy++.h // // Hi Paul // // On your website (http://www.pjrc.com/teensy/td_libs_GLCD.html) you ask // for photos, configurations and GLCD models. I just ran a GLC // (rt12864j-1) using port C for data and port A (the center port on the // board) for commands. Runs very nicely - I send this email to you because // so far I haven't seen anyone using those hard to access pins 28-35 for a // GLCD. /* ks0108_Arduino.h - Arduino library support for ks0108 and compatable graphic LCDs Copyright (c)2008 Michael Margolis All right reserved Adjusted to run a GLCD on Teensy++ ports A & C by Daniel Susstrunk This is the configuration file for mapping Teensy++ pins to the ks0108 Graphics LCD library */ #ifndef KS0108_CONFIG_H #define KS0108_CONFIG_H #define CSEL1 32 // CS1 Bit #define CSEL2 28 // CS2 Bit #define R_W 34 // R/W Bit #define D_I 35 // D/I Bit #define EN 33 // EN Bit #define LCD_CMD_PORT PORTA // pins 28-35 // these macros map pins to ports using the defines above // the following should not be changed unless you really know what your doing #define LCD_DATA_LOW_NBL C // port for low nibble: pins 10-13 #define LCD_DATA_HIGH_NBL C // port for high nibble: pins 14-17 // Teensyduino always optimizes digitialWrite when used with const inputs #define fastWriteHigh(_pin) (digitalWrite((_pin), HIGH)) #define fastWriteLow(_pin) (digitalWrite((_pin), LOW)) #endif