issue #371
This commit is contained in:
parent
fd971d3b06
commit
fca5eb1349
|
@ -835,7 +835,7 @@ uint8_t u8x8_cad_uc1638_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *ar
|
|||
case U8X8_MSG_CAD_INIT:
|
||||
/* apply default i2c adr if required so that the start transfer msg can use this */
|
||||
if ( u8x8->i2c_address == 255 )
|
||||
u8x8->i2c_address = 0x070;
|
||||
u8x8->i2c_address = 0x078;
|
||||
return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr);
|
||||
case U8X8_MSG_CAD_START_TRANSFER:
|
||||
in_transfer = 0;
|
||||
|
|
|
@ -187,7 +187,10 @@ static const uint8_t u8x8_d_uc1638_160x128_init_seq[] = {
|
|||
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
|
||||
|
||||
U8X8_CA(0x0e1, 0x0e2), /* software reset */ /* UC1638*/
|
||||
U8X8_END_TRANSFER(), /* disable chip, requirement for I2C */
|
||||
U8X8_DLY(5), /* 5 ms */
|
||||
|
||||
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
|
||||
|
||||
U8X8_C(0x024), /* set temp comp*/
|
||||
U8X8_C(0x0c0), /* mirror y and mirror x */ /* WAS: c2 */
|
||||
|
|
|
@ -301,10 +301,10 @@ U8G2_UC1638_192X96_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*
|
|||
|
||||
void setup(void) {
|
||||
/* U8g2 Project: SSD1306 Test Board */
|
||||
//pinMode(10, OUTPUT);
|
||||
//pinMode(9, OUTPUT);
|
||||
//digitalWrite(10, 0);
|
||||
//digitalWrite(9, 0);
|
||||
pinMode(10, OUTPUT);
|
||||
pinMode(9, OUTPUT);
|
||||
digitalWrite(10, 0);
|
||||
digitalWrite(9, 0);
|
||||
|
||||
/* U8g2 Project: T6963 Test Board */
|
||||
//pinMode(18, OUTPUT);
|
||||
|
|
Loading…
Reference in New Issue