1
1

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)(M5NanoC6)

Last updated at Posted at 2025-02-14

x 過去ログを見よ!!!
x M5Unified 0.2.3
x UNIT_GLASS 0.0.1
x M5GFX 0.2.5
x ESP32 3.0.7
x なぜかNanoC6を抜いて挿したら動いた

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

いろいろ
M5NanoC6では、ESP32 ArduinoをESP32 3.0.7に
戻したら表示できた。

結果

image_original (46).jpg

プログラム



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

void setup() {
  auto cfg=M5.config();
  cfg.unit_glass2.pin_sda=2;
  cfg.unit_glass2.pin_scl=1;
  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
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?