(SSD1306)「こんにちは...」を表示して遊ぶ。(M5NanoC6)(M5UnitGLASS2)(M5Unified)
x 過去ログを見よ!!
x M5Unifiedのインストール
x M5UnitGLASS2のインストール
参考
目的
SSD1306のらびあん様系のツール系を
@nodrin様の記事を元にArduino IDEで実験してみました。
結果
プログラム
#include <M5UnitGLASS2.h>
#include <M5Unified.h>
// Port.A SDA(G2), SCL(G1)
M5UnitGLASS2 SSD1306Display(2, 1);
void setup() {
M5.begin();
SSD1306Display.init();
SSD1306Display.setFont(&fonts::lgfxJapanGothicP_16);
SSD1306Display.println("こんにちは世界!!");
SSD1306Display.setFont(&fonts::FreeMonoBold9pt7b);
SSD1306Display.println("SSD1306\nGME12864-51");
}
void loop() {
}