diff --git a/csrc/u8x8_d_uc1611.c b/csrc/u8x8_d_uc1611.c index 1e541e80..4f11e597 100644 --- a/csrc/u8x8_d_uc1611.c +++ b/csrc/u8x8_d_uc1611.c @@ -177,7 +177,7 @@ static const uint8_t u8x8_d_uc1611_ea_dogm240_init_seq[] = { U8X8_CA(0x0f2, 0x000), /* display line start */ U8X8_CA(0x0f3, 63), /* display line end */ U8X8_C(0x0a3), /* line rate */ - U8X8_CA(0x081, 0x092), /* set contrast, EA default: 0x08f */ + U8X8_CA(0x081, 0x08f), /* set contrast, EA default: 0x08f */ //U8X8_C(0x0a9), /* display enable */ @@ -227,9 +227,9 @@ static const uint8_t u8x8_d_uc1611_ea_dogxl240_init_seq[] = { U8X8_CA(0x0f2, 0x000), /* display line start */ U8X8_CA(0x0f3, 127), /* display line end */ U8X8_C(0x0a3), /* line rate */ - U8X8_CA(0x081, 0x09f), /* set contrast */ + U8X8_CA(0x081, 0x08f), /* set contrast */ - U8X8_C(0x0a9), /* display enable */ + //U8X8_C(0x0a9), /* display enable */ U8X8_C(0x0d1), /* display pattern */ U8X8_C(0x089), /* auto increment */ diff --git a/sys/arduino/u8x8/HelloWorld/HelloWorld.ino b/sys/arduino/u8x8/HelloWorld/HelloWorld.ino index efc824ff..a689ecd2 100644 --- a/sys/arduino/u8x8/HelloWorld/HelloWorld.ino +++ b/sys/arduino/u8x8/HelloWorld/HelloWorld.ino @@ -72,7 +72,8 @@ //U8X8_UC1610_EA_DOGXL160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8X8_UC1611_EA_DOGM240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8X8_UC1611_EA_DOGXL240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board - +//U8X8_UC1611_EA_DOGXL240_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); +U8X8_UC1611_EA_DOGXL240_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // End of constructor list diff --git a/tools/inoupdate/frame_buffer.ino b/tools/inoupdate/frame_buffer.ino index 2d8cdb6a..b23432e6 100644 --- a/tools/inoupdate/frame_buffer.ino +++ b/tools/inoupdate/frame_buffer.ino @@ -38,4 +38,5 @@ //U8G2_UC1610_EA_DOGXL160_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8G2_UC1611_EA_DOGM240_F_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8G2_UC1611_EA_DOGXL240_F_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board +//U8G2_UC1611_EA_DOGXL240_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Due, SW SPI, DOGXL240 Test Board diff --git a/tools/inoupdate/page_buffer.ino b/tools/inoupdate/page_buffer.ino index cb704054..92f4907b 100644 --- a/tools/inoupdate/page_buffer.ino +++ b/tools/inoupdate/page_buffer.ino @@ -39,6 +39,7 @@ //U8G2_UC1610_EA_DOGXL160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8G2_UC1611_EA_DOGM240_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8G2_UC1611_EA_DOGXL240_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board +//U8G2_UC1611_EA_DOGXL240_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Due, SW SPI, DOGXL240 Test Board diff --git a/tools/inoupdate/u8x8.ino b/tools/inoupdate/u8x8.ino index a749c9a5..83b2d3f3 100644 --- a/tools/inoupdate/u8x8.ino +++ b/tools/inoupdate/u8x8.ino @@ -26,4 +26,5 @@ //U8X8_UC1610_EA_DOGXL160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8X8_UC1611_EA_DOGM240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8X8_UC1611_EA_DOGXL240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board +//U8X8_UC1611_EA_DOGXL240_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Due, SW SPI, DOGXL240 Test Board