This is an automated email from the ASF dual-hosted git repository. lupyuen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 108b23b7a2f1d6648b96d21d37b30c0fdfa702c6 Author: Alan Carvalho de Assis <[email protected]> AuthorDate: Thu Mar 12 19:25:17 2026 -0300 doc/stm32f4discovery: Add LCD ST7567 This commits explains how to use the LCD ST7567 with STM32F4Discovery board. Signed-off-by: Alan C. Assis <[email protected]> --- .../arm/stm32f4/boards/stm32f4discovery/index.rst | 76 ++++++++++++++++++++- .../arm/stm32f4/boards/stm32f4discovery/st7567.png | Bin 0 -> 390256 bytes 2 files changed, 74 insertions(+), 2 deletions(-) diff --git a/Documentation/platforms/arm/stm32f4/boards/stm32f4discovery/index.rst b/Documentation/platforms/arm/stm32f4/boards/stm32f4discovery/index.rst index 3a58d2853fc..f935db7ec1b 100644 --- a/Documentation/platforms/arm/stm32f4/boards/stm32f4discovery/index.rst +++ b/Documentation/platforms/arm/stm32f4/boards/stm32f4discovery/index.rst @@ -789,8 +789,8 @@ BASIC interpreter that you can find at apps/interpreters/bas.:: There is also a test suite for the interpreter that can be found at apps/examples/bastest. -Configuration -------------- +BAS +--- Below are the recommended configuration changes to use BAS with the stm32f4discovery/nsh configuration: @@ -2012,6 +2012,78 @@ The sporadic scheduler is enabled and the purpose of this configuration is to investigate an error in that scheduler. See Issue 2035. The serial console is on USART6. +st7567 +------ + +Configures the board to support a ST7567 monochromatic LCD like the +OPEN-SMART 1.8INCH LCD. + +Connect the STM32F4Discovery board to ST7567 LCD this way: + +================ =========== +STM32F4Discovery ST7567 LCD +================ =========== +GND GND +3V [1] 3V3 +SPI1 MOSI (PA7) SDI +SPI1 SCK (PA5) SCK +PB8 DC +SPI1 CS (PB7) CS +PB6 RST +GND LED +================ =========== + +1: You need to remove the diode D3 and short-circuit the PADs in the +board to get 3.3V. Be aware: although my board works fine, it could +damage something that expects 3V in our board (double check). + +After compiling and flashing the firmware in our board, run fb command. + +.. code:: console + + NuttShell (NSH) NuttX-12.12.0 + nsh> ? + help usage: help [-v] [<cmd>] + + . cp expr mount kill uname + [ cmp false mv pkill umount + ? dirname fdinfo pidof sleep unset + alias df free printf usleep uptime + unalias dmesg help ps source watch + basename echo hexdump pwd test xd + break env ls rm time wait + cat exec mkdir rmdir true + cd exit mkrd set truncate + + Builtin Apps: + dd fb hello nsh sh + nsh> fb + VideoInfo: + fmt: 0 + xres: 128 + yres: 64 + nplanes: 1 + PlaneInfo (plane 0): + fbmem: 0x10000a98 + fblen: 1024 + stride: 16 + display: 0 + bpp: 1 + Mapped FB: 0x10000a98 + 0: ( 0, 0) (128, 64) + 1: ( 11, 5) (106, 54) + 2: ( 22, 10) ( 84, 44) + 3: ( 33, 15) ( 62, 34) + 4: ( 44, 20) ( 40, 24) + 5: ( 55, 25) ( 18, 14) + Test finished + nsh> + +You should see this image: + +.. figure:: st7567.png + :align: center + testlibcxx ---------- diff --git a/Documentation/platforms/arm/stm32f4/boards/stm32f4discovery/st7567.png b/Documentation/platforms/arm/stm32f4/boards/stm32f4discovery/st7567.png new file mode 100644 index 00000000000..82f3f3f3e11 Binary files /dev/null and b/Documentation/platforms/arm/stm32f4/boards/stm32f4discovery/st7567.png differ
