Skip to content

Commit 78e3f17

Browse files
acassissimbit18
authored andcommitted
doc/raspberrypi-pico: Improves ST7735 Documentation
This commit improves the documentation about ST7735 LCD usage. Signed-off-by: Alan C. Assis <acassis@gmail.com>
1 parent 5796849 commit 78e3f17

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

Documentation/platforms/arm/rp2040/boards/raspberrypi-pico/index.rst

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,59 @@ ST7735 SPI LCD.
356356
* - AO(D/C)
357357
- GP12 (SPI1 RX) (Pin 16)
358358
* - BL
359-
- GP11 (Pin 15)
359+
- GP11 (Pin 15) [1]
360360
* - RESET
361361
- GP10 (Pin 14)
362362

363+
1: At least in my LCD module I don't need to connect any wire to the backlight pin (BLK) since it is enabled by default.
364+
365+
After compiling and flashing the firmware in our board, run fb command.
366+
367+
.. code:: console
368+
369+
NuttShell (NSH) NuttX-12.13.0
370+
nsh> ?
371+
help usage: help [-v] [<cmd>]
372+
. cp exit mkrd rmdir true
373+
[ cmp expr mount set truncate
374+
? dirname false mv kill uname
375+
alias date fdinfo pidof pkill umount
376+
unalias df free printf sleep unset
377+
basename dmesg help ps usleep uptime
378+
break echo hexdump pwd source watch
379+
cat env ls reboot test xd
380+
cd exec mkdir rm time wait
381+
Builtin Apps:
382+
dd getprime nsh nxdemo nxlines sh
383+
fb hello nx nxhello ostest
384+
nsh> fb
385+
VideoInfo:
386+
fmt: 11
387+
xres: 128
388+
yres: 160
389+
nplanes: 1
390+
PlaneInfo (plane 0):
391+
fbmem: 0x20003bf0
392+
fblen: 40960
393+
stride: 256
394+
display: 0
395+
bpp: 16
396+
Mapped FB: 0x20003bf0
397+
0: ( 0, 0) (128,160)
398+
1: ( 11, 14) (106,132)
399+
2: ( 22, 28) ( 84,104)
400+
3: ( 33, 42) ( 62, 76)
401+
4: ( 44, 56) ( 40, 48)
402+
5: ( 55, 70) ( 18, 20)
403+
Test finished
404+
nsh>
405+
406+
407+
You should see this image:
408+
409+
.. figure:: st7735.png
410+
:align: center
411+
363412
tmp112
364413
------
365414

1.44 MB
Loading

0 commit comments

Comments
 (0)