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?

キャラクタLCDでアニメーション

0
Last updated at Posted at 2026-05-03

次の計測までの待ち時間を、信号機のようなアニメーションにして付けてみました。

LCD(AQM0802A)のCGRAMに4つパターンを用意して、スペースと合わせて5段階の表示をします。

CGRAM.png

デフォルトのフォントのすべてが下一行を空けているので合わせました。

キャラクターコードは0x20,0x00,0x01,0x02,0x03です。特殊なコードになるため、lcdクラスに表示用のメソッド(bou)を用意しました。

後日追記:0x00のパターンはデフォルトフォントの0x5Fと同じなので、これを使えば3つで済みます。

コードはこれです。

以前LEDで似たようなことしたのですが、こちらの方が分かりやすいと思います。

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?