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?

(E.C6)Arduino-misakiUTF16で遊ぶ。1文字 XAIO ESP32C6(シリアル出力)

Last updated at Posted at 2025-05-03

参考

結果

Screenshot from 2025-05-03 23-39-59.png

プログラム



//misaki_test1_XIAO_ESP32C6

#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++) {
    int sif = 0x80;
    int al = font[row];
    for (int col = 0; col < 8; col++) { //8bit

      if ((al & sif) == 0) {
        Serial.print(' ');
      } else {
        Serial.print('#');
      }
      sif = sif >> 1;

    }  //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?