// https://forum.arduino.cc/t/car-dashboard-ssd1306-automotive-gauges-read-display-speed-sensor/1410740
#include <U8g2lib.h>
U8G2_SSD1306_128X64_NONAME_F_SW_I2C display0 (U8G2_R0, SCL, SDA, U8X8_PIN_NONE);
U8G2_SSD1306_128X64_NONAME_F_SW_I2C display1 (U8G2_R0, SCL, SDA, U8X8_PIN_NONE);
void setup(void) {
display0.setI2CAddress(0x7A); // 0x3C
display0.begin();
display0.setFont(u8g2_font_t0_14b_mf); // choose a suitable font
display0.clearDisplay();
display1.setI2CAddress(0x78); // 0x3D
display1.begin();
display1.setFont(u8g2_font_t0_14b_mf); // choose a suitable font
display1.clearDisplay();
display0.setDrawColor(1);
display0.setCursor(2, 14);
display0.print("test1b"); // write something to the internal memory
display0.sendBuffer(); // transfer internal memory to the display
display0.clearBuffer();
display1.setDrawColor(1);
display1.setCursor(2, 40);
display1.print("test2"); // write something to the internal memory
display1.sendBuffer(); // transfer internal memory to the display
display1.clearBuffer();
}
void loop(void) {
}