#COM
#UART
#I2C
#SPI
#touchlcd
ドローンでよく使われるシリアル通信規格について(SPI、UART、I2C)
https://create-it-myself.com/research/study-serial-bus/
SPI
> 伝送速度:数Mbpsほど
4DUINO-24
https://4dsystems.com.au/products/featured-products/4duino-24
> and WiFi Capabilities using built-in ESP8266 SoC
WiFiのものはESP8266が普及している
ESP32ではない
LPCXpresso54628にもESP8266対応がたしかあった
#DIP (Doing in private)
#4dsystems
#touchlcd
#Power
gen4-uLCD-35DT
serial slave mode
PWR後に3秒待ちで初期化完了
MCUと使う場合、初期化完了してから使わないと失敗する場合あり
disp_clear()コマンドはあるが
#DIP (Doing in private)
#4dsystems #touchlcd
gen4-uLCD-35DT
media_VideoFrame [FF30 0000 0000 00D2] 0.013 (ACK)
応答待ち 13msec
#DIP (Doing in private)
#4dsystems
#touchlcd
gen4-uLCD-35DT
Diablo16 serial commands reference manual
5.6.29. File Run
> The File Run command will load the 4FN or 4XE program from the uSD card into the RAM and execute it.
.4FN file: 4DGLがmain()を引数付きで持つ時
.4XE file: 4DGLがmain()を引数なしで持つ時
プログラム実行のこの仕組は面白いな
#DIP (Doing in private)
#4dsystems
#touchlcd
#font
タッチディスプレイ gen4-uLCD-35DT > 日本語フォント(東雲)を表示する > Display Video Frameを使う
https://qiita.com/7of9/items/3ec81afe0765063399e4
#DIP (Doing in private)
#font
#4dsystems
#touchlcd
gen4-uLCD-35DT
Display Video Frame機能を使った日本語フォント(東雲)の表示
左上の「あいう」
16x16は小さく、二倍に拡大はした (ImageMagick)
#DIP (Doing in private)
#font
#4dsystems
#touchlcd
#ImageMagick
Python + ImageMagick > BMP形式の文字一覧から文字を切り出す (東雲フォントのBMP変換に対して)
https://qiita.com/7of9/items/b8b3caea9dc09c69ce17
#DIP (Doing in private)
#4dsystems
#touchlcd
Diablo16 Serial Commands Reference Manual
p123
5.6.31. Load Image Control
> ... use the "File Seek" command to get to the position of the image which can then automatically be displayed using the "Display Image (FAT)" command.
探していたのはこれか
こちらでなくDisplya Video Frameを使うのでいいが
#DIP (Doing in private)
#4dsystems
#touchlcd
#font
日本語表示の流れ
1. animated gifでひらがな、カタカナのアニメーション画像を作る
2. Graphics Composerで読み込み、rawイメージでmicroSD保存
3. Display Video Frame (RAW)にて任意の文字を指定位置に表示
animated gitを作るツールはlinuxでもWindowsでも
管理がしやすくなるだろう
#DIP (Doing in private)
#4dsystems
#touchlcd
#font
#image
gen4-uLCD-35DT
https://forum.4dsystems.com.au/node/55465
> I eventually found a better way to accomplish what I was trying to do by putting all the SD card image offsets into a two dimensional array. I figured I had to have all those offsets in memory might as well have them arranged in usable order. ...
作るのに苦労したという記載もある
5.6.17 Display Image (FAT)
> If there is more than 1 image in the file, it can be accessed with the "File Seek" command.
#DIP (Doing in private)
#4dsystems
#touchlcd
#DIP (Doing in private)
#4dsystems
#touchlcd
gen4-uLCD-35DT
Diablo16 serial commands reference manual
5.2.19 Set Clip Window
> The Set Clip Window command specifies a clipping window region on the screen such that any objects and text placed onto the screen will be clipped and displayed only within that region.
画像の一部を表示するのに使えるかどうか
4DLCD-43480272-RTP
https://www.mouser.jp/ProductDetail/4D-LCD/4DLCD-43480272-RTP?qs=sGAEpiMZZMu%2FRY1bNe3bO3ZMV7Fimc7HRAo0K6AONXLArkDHm%252BDX2g%3D%3D
4D Systemsのパラレル接続Touch LCD
RockTechのものと似ているが、ピンは微妙に異なる?
gen4-uLCD-35DTと比べて、通信速度は速くなるのだろうか
MCU側の処理は要検討
40ピンとCTPケーブルの2つの接続を使うことになるのか
RockTech
RK043FN48H-CT672B
https://mikrocontroller.bplaced.net/wordpress/wp-content/uploads/2018/01/RK043FN48H-CT672B-V1.0.pdf
この資料の6.1 TFT LCD Pin DescriptionはLPCXpresso54628のLCDとは配置が違う
Resetピンが40ピンに含まれている
LCDのモデルにより、ピン配置が異なり、LPCXpresso54628ではあのモデルが使われている
ということなんだろう
eLCDIFという規格のLCDなんだろう
eLCDIF RGB Mode Use Case
https://www.nxp.com/docs/en/application-note/AN12302.pdf
#lpcxpresso54628
#GPIO
#touchlcd
https://community.nxp.com/thread/515081
Pin 2-27
LPCXpresso 54628のSDKをインストール
Pin Toolsで確認
で分かるかな