Replies: 1 comment
-
Yes, cou can assign new Arduino pin numbers: u8g2.GetU8x8()->pins[U8X8_PIN_I2C_CLOCK] = <i2c clock arduino pin number>
u8g2.GetU8x8()->pins[U8X8_PIN_I2C_DATA] = <i2c data arduino pin number> Reference: Lines 320 to 321 in bdb7896 Line 370 in bdb7896 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using U8g2 with a ST7567 in SW I2C mode
Constructor:
U8G2_ST7567_JLX12864_F_SW_I2C u8g2(U8G2_R2, SCL2, SDA2);
My question: is there a way without modifying the library to change the clock and data lines to other pins at run time?
I have a configurable system and 2x I2C buses so I would like the option of having the GUI put onto either of these buses.
Beta Was this translation helpful? Give feedback.
All reactions