Added SSD1309 128x128 support

This commit is contained in:
CSC3000
2024-11-30 17:52:25 +01:00
parent 4b17158f4d
commit 655c4481bf
3 changed files with 139 additions and 29 deletions
+8
View File
@@ -7421,6 +7421,14 @@ class U8G2_SSD1309_128X64_NONAME0_F_HW_I2C : public U8G2 {
u8x8_SetPin_HW_I2C(getU8x8(), reset, clock, data);
}
};
/* CSC ==> */
class U8G2_SSD1309_128X128_NONAME0_F_HW_I2C : public U8G2 {
public: U8G2_SSD1309_128X128_NONAME0_F_HW_I2C(const u8g2_cb_t *rotation, uint8_t reset = U8X8_PIN_NONE, uint8_t clock = U8X8_PIN_NONE, uint8_t data = U8X8_PIN_NONE) : U8G2() {
u8g2_Setup_ssd1309_i2c_128x128_noname0_f(&u8g2, rotation, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
u8x8_SetPin_HW_I2C(getU8x8(), reset, clock, data);
}
};
/* <== CSC */
class U8G2_SSD1309_128X64_NONAME0_F_2ND_HW_I2C : public U8G2 {
public: U8G2_SSD1309_128X64_NONAME0_F_2ND_HW_I2C(const u8g2_cb_t *rotation, uint8_t reset = U8X8_PIN_NONE) : U8G2() {
u8g2_Setup_ssd1309_i2c_128x64_noname0_f(&u8g2, rotation, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);