1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

また(SSD1306)「こんにちは...」を表示して遊ぶ。(M5Unified 0.2.3)(StampS3)

Last updated at Posted at 2025-02-13

x 過去ログを見よ!!!
x M5Unified 0.2.3
x UNIT_GLASS 0.0.1
x M5GFX 0.2.5
x 3.1.2

目的
SSD1306(OLED)に漢字を表示して遊ぶ

いろいろ
なぜかM5NanoC6では、何も表示されない(20250214)、
ESP32 3.0.7にしたら動いた(20250215)

結果

イメージ

o_coq570.jpg

o_coq810.jpg

o_coq811.jpg

o_coq812.jpg

o_coq813.jpg

プログラム




#include <M5UnitGLASS2.h>
#include <M5Unified.h>

void setup() {
  auto cfg=M5.config();
  cfg.unit_glass2.pin_sda=13;
  cfg.unit_glass2.pin_scl=15;
  M5.begin(cfg);

  M5.Lcd.setFont(&fonts::lgfxJapanGothicP_16);
  M5.Lcd.println("こんにちは世界!!");
  M5.Lcd.setFont(&fonts::FreeMonoBold9pt7b);
  M5.Lcd.println("SSD1306\nGME12864-51");
}

void loop() {
}



1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?