preparation for issue #88

This commit is contained in:
olikraus 2016-12-03 10:10:20 +01:00
parent 3e9686bbdb
commit 6c995f3289
3 changed files with 22 additions and 7 deletions

View File

@ -59,3 +59,4 @@ https://github.com/olikraus/u8g2 ChangeLog
* Speed improvements for SW SPI und 8080 mode (issues 87, 90 and 95)
* Fixed issue with ST7920 not using the optimized SW SPI procedures (issue 87)
* Direct buffer API (issue 93)

View File

@ -281,14 +281,17 @@ struct u8x8_display_info_struct
#define U8X8_PIN_I2C_CLOCK 12 /* 1 = Input/high impedance, 0 = drive low */
#define U8X8_PIN_I2C_DATA 13 /* 1 = Input/high impedance, 0 = drive low */
#define U8X8_PIN_OUTPUT_CNT 14
#define U8X8_PIN_CS1 14 /* KS0108 extra chip select */
#define U8X8_PIN_CS2 15 /* KS0108 extra chip select */
#define U8X8_PIN_MENU_SELECT 14
#define U8X8_PIN_MENU_NEXT 15
#define U8X8_PIN_MENU_PREV 16
#define U8X8_PIN_MENU_HOME 17
#define U8X8_PIN_MENU_UP 18
#define U8X8_PIN_MENU_DOWN 19
#define U8X8_PIN_OUTPUT_CNT 16
#define U8X8_PIN_MENU_SELECT 16
#define U8X8_PIN_MENU_NEXT 17
#define U8X8_PIN_MENU_PREV 18
#define U8X8_PIN_MENU_HOME 19
#define U8X8_PIN_MENU_UP 20
#define U8X8_PIN_MENU_DOWN 21
#define U8X8_PIN_INPUT_CNT 6

View File

@ -236,6 +236,17 @@ void draw(void) {
void setup(void) {
u8g2.begin();
/* U8g2 Project: SSD1306 Test Board */
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
digitalWrite(10, 0);
digitalWrite(9, 0);
/* U8g2 Project: T6963 Test Board */
//pinMode(18, OUTPUT);
//digitalWrite(18, 1);
}
void loop(void) {