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.
Dependencies: aqm1248a_lcd mbed GT20L16J1Y_font
You are viewing an older revision! See the latest version
Homepage
STM32 Nucleo L152RE/mbed で秋月 AQM1248A グラフィック LCD をドライブ。
AQM1248A 用 LCD ライブラリは http://mbed.org/users/dreschpe/code/C12832_lcd/ をベースに変更しました。mbed LPC1768 でも動く筈です(未確認)。
ピン配置はライブラリの aqm1248a_lcd.cpp 内で指定しており、Nucleo L152RE では次のようにしています。LPC1768 mbed ではオリジナルのままです。
- p5 : SPI MOSI
- p7: SPI Clock
- p11: SPI chip select
- p6: reset
- p8: A0
条件コンパイルの TARGET_NUCLEO_L152RE の部分に追加すれば、ほとんどそのままで他の Nucleo ボードなどで動くと思います。
これはテキスト、直線、矩形、円、ビットマップ描画の簡単なサンプルです。
- 2014.04.27 mbed ライブラリを更新でテキスト描画が随分と高速化されました。Freescale FRDM-KL05Z でも動作確認しました。同じ配線で動きます。