Hey guys,
almost new on programming arduinos, I got stuck here. Can anyone help?
Board: Adafruit Feather M0 Adalogger
Display 128 x 64 OLED Type SH1106
connected via SDA(GPIO #20), SLC(GPIO #21), VDD, GND
Which libraries do I need?
#include <U8g2lib.h>
#include <SPI.h>
#include <Wire.h>
Which constructor is to be used?
Tried this --> error message!
//template :U8G2_SH1106_128X64_NONAME_1_HW_I2C(rotation, [reset [, clock, data]])
U8G2_SH1106_128X64_NONAME_1_HW_I2C(U8G2_R0, [U8X8_PIN_NONE [,21, 20]]);
Here the rest of the code I got from some tutorial:
void setup(void) {
u8g2.begin();
}
void loop(void) {
u8g2.firstPage();
do {
u8g2.setFont(u8g2_font_ncenB14_tr);
u8g2.drawStr(0,24,"Hello World!");
} while ( u8g2.nextPage() );
}
Thanks a lot!
Thomas