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?

(M5S3)Arduino-misakiUTF16で遊ぶ。1文字 M5StampS3

Last updated at Posted at 2025-05-02

参考

結果

Screenshot from 2025-05-03 06-48-15.png

プログラム



//misaki_test1_m5stamps3

#include <misakiUTF16.h>

void setup() {

  //シリアルの初期化
  Serial.begin(9600);
  Serial.println();
  //シリアルの待ちが0.5*9
  for (int i = 0; i < 9; i++) {
    delay(500);  //接続待ち
    Serial.print('.');
  }  //for
  Serial.println();


  unsigned char font[8];    // フォント格納バッファ
  getFontData(font, "あ");  // "あ"のフォントを取得

  // 取得フォントの確認
  for (int row = 0; row < 8; row++) {
    for (int col = 0; col < 8; col++) {

      //Serial.write((0x80 >> col) & font[row] ? '#' : ' ');
      if((0x80 >> col) & font[row]){
          Serial.print('#');
      }else{
          Serial.print(' ');
      }

    }//for col
    Serial.println();
  }//for row
}//setup

void loop() {
  delay(3); //dummy
}//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?