Dichter komm ich nicht an deinen Aufbau dran.
Der Code aus #43 muss so aussehen:
Code
#include <Wire.h>
#include <U8g2lib.h>
#include <Arduino.h>
//U8G2_SH1106_128X64_NONAME_1_2ND_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);
U8G2_SH1106_128X64_NONAME_F_2ND_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);
u8g2_uint_t offset;
u8g2_uint_t width;
const char *text = "Hallo";
void setup(void) {
u8g2.begin();
u8g2.setFont(u8g2_font_lubB18_tr);
width = u8g2.getUTF8Width(text);
u8g2.setFontMode(0);
}
void loop(void) {
for (int i = 0; i < 128 + width * 3; i++) {
u8g2.firstPage();
do {
u8g2.setFont(u8g2_font_helvR24_tf);
u8g2.drawUTF8(128 - i, 48, text);
} while (u8g2.nextPage());
}
u8g2.clearBuffer();
}
