Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
ATM0177B3AをNucleo F303K8で動かす
秋月電子で販売されているATM0177B3AをNucleo F303K8で動かしました。 https://akizukidenshi.com/catalog/g/gK-14032/ フォーク元のmbedライブラリを更新して、そのまま書き込んでも動きます。 https://os.mbed.com/users/morita/code/DL144128_LCD/file/c0be4e018a09/ili9163lcd.h/
変更点¶
- 画面サイズをdefine
//128x160 #define COL_MAX 0x7f #define PAGE_MAX 0x9f
- 画面表示方向のdefine定義名を変更 →LCD_ORIENTATION0 がエラーのため
#define LCD_ORIENTATION0 0//変更前 #define ROT_TOP 0b00000000//変更後
他省略
- ガンマカーブ設定のコメントアウト →初期設定で問題なし
- 画面サイズ設定のコメントアウト →HWで設定済
HW構成¶

- VFのTYPが3.3Vと精度が疑わしく、電流制限抵抗の設計が難しい バックライトの実測 負荷抵抗:10Ω、電源電圧:3.276V時 VR=0.335V、従ってVF=2.941V、IF=33.5mA 負荷抵抗:100Ω時→若干暗いけど問題ないので採用 VR=0.621V、従ってVF=2.655V、IF=26.55mA
- ピン配置
DigitalOut SCK_(A4); DigitalOut SDA_(A6); DigitalOut A0_(A2); DigitalOut RESET_(A1);//10kプルアップ DigitalOut CS_(A3);