LoginSignup
0
0

More than 3 years have passed since last update.

タッチディスプレイ gen4-uLCD-35DT > 日本語フォント(東雲)を表示する > idea: Display Video Frameを使う

Last updated at Posted at 2019-11-12
動作環境
Ubuntu 18.04 LTS 
display module: gen4-uLCD-35DT 
  Workshop 4 IDE v4.5.0.17 (on Windows 10 Pro)
MCU: STM32F446 Nuclero-64
  STM32CubeIDE v1.0.1 (on Ubuntu 18.04 LTS)

概要

  • gen4-uLCD-35DTは日本語フォント表示機能がない
  • 16x16の東雲フォントを使おう
  • フォントはVideoとしてmicroSDに保存する
  • Display Video Frameにて文字選択して任意の場所に表示

手順

  1. 東雲フォント(BDF形式)をBMP形式に変換する
  2. BMP形式(一覧)をImageMagickで分割する
  3. animated gifの作成
    • $convert -delay 10 wrk*.bmp anime_x2_invert.gif
  4. Graphics Composerでainmated gifを設定
    • raw形式でmicroSDへ保存
  5. Display Video Frameで表示 (Workshop 4 IDEのSerial Commanderで動作確認)
    • a. Media > media_Init
    • b. Media > media_SetAdd
      • HiWord:0, LoWord:0
    • c. Media > media_VideoFrame
      • あ: offset=210, x=0, y=0
      • い: offset=212, x=0, y=32
      • う: offset=214, x=0, y=64

結果

左上が表示した文字。

IMG_1358.JPG

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