0
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?

ATOMS3 Liteでアバター(Avatar.h)で遊ぶ。(スタックチャン)「スタックチャンフェス

Last updated at Posted at 2025-10-22

参考

Screenshot from 2025-10-22 23-52-00.png

いろいろ注意

  • 過去ログを見よ!!!
  • M5Stack Boards 3.2.3
  • M5AtomS3 1.0.2
  • M5Satck_Avatar 0.10.0

目的

  • スタックチャンで遊ぶ。

結果

Screenshot from 2025-10-22 23-38-28.png

プログラム




//Unit_GLASS_KAO_1_M5AtomS3_1

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


#include <Avatar.h>
m5avatar::Avatar avatar;


#define M5UNITGLASS2_ADDR 0x3C  // For Unit Glass2, 0x3C is default, and 0x3D is modified.

int index_unit_glass2;

void setup() {

  auto cfg = M5.config();
  cfg.external_display.unit_glass2 = true;
  M5.begin(cfg);

  index_unit_glass2 = M5.getDisplayIndex(m5::board_t::board_M5UnitGLASS2);
  M5.Displays(index_unit_glass2).setTextSize(2);
  M5.Displays(index_unit_glass2).clear();

  avatar.setScale(.3);
  avatar.setPosition(-88, -96);
  avatar.init();

}  //setup


void loop() {

  //M5.Displays(index_unit_glass2).setCursor(0, 0);
  //M5.Displays(index_unit_glass2).print("This is \nUnit \nGlass2");
  //delay(1000);
  //M5.Displays(index_unit_glass2).clear();

  //delay(1000);

  delay(3);  //dumi

}  //loop



0
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
0
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?