Skip to content

Commit f255cd8

Browse files
acassislinguini1
authored andcommitted
Doc/raspberry-pico-w: Update ST7735 Documentation
Keep the documentation in sync with raspberrypi-pico. Signed-off-by: Alan C. Assis <acassis@gmail.com>
1 parent 7bdd933 commit f255cd8

2 files changed

Lines changed: 51 additions & 2 deletions

File tree

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

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ ST7735 SPI LCD.
327327
* - GND
328328
- GND (Pin 3 or 38 or ...)
329329
* - VCC
330-
- 5V Vbus (Pin 40) or 3V3 (Pin 36), depending on the display
330+
- 3V3 (Pin 36) or 5V Vbus (Pin 40), if your module has a voltage regulator
331331
* - SDA
332332
- GP15 (SPI1 TX) (Pin 20)
333333
* - SCK
@@ -337,10 +337,59 @@ ST7735 SPI LCD.
337337
* - AO(D/C)
338338
- GP12 (SPI1 RX) (Pin 16)
339339
* - BL
340-
- GP11 (Pin 15)
340+
- GP11 (Pin 15) [1]
341341
* - RESET
342342
- GP10 (Pin 14)
343343

344+
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.
345+
346+
After compiling and flashing the firmware in our board, run fb command.
347+
348+
.. code:: console
349+
350+
NuttShell (NSH) NuttX-12.13.0
351+
nsh> ?
352+
help usage: help [-v] [<cmd>]
353+
. cp exit mkrd rmdir true
354+
[ cmp expr mount set truncate
355+
? dirname false mv kill uname
356+
alias date fdinfo pidof pkill umount
357+
unalias df free printf sleep unset
358+
basename dmesg help ps usleep uptime
359+
break echo hexdump pwd source watch
360+
cat env ls reboot test xd
361+
cd exec mkdir rm time wait
362+
Builtin Apps:
363+
dd getprime nsh nxdemo nxlines sh
364+
fb hello nx nxhello ostest
365+
nsh> fb
366+
VideoInfo:
367+
fmt: 11
368+
xres: 128
369+
yres: 160
370+
nplanes: 1
371+
PlaneInfo (plane 0):
372+
fbmem: 0x20003bf0
373+
fblen: 40960
374+
stride: 256
375+
display: 0
376+
bpp: 16
377+
Mapped FB: 0x20003bf0
378+
0: ( 0, 0) (128,160)
379+
1: ( 11, 14) (106,132)
380+
2: ( 22, 28) ( 84,104)
381+
3: ( 33, 42) ( 62, 76)
382+
4: ( 44, 56) ( 40, 48)
383+
5: ( 55, 70) ( 18, 20)
384+
Test finished
385+
nsh>
386+
387+
388+
You should see this image:
389+
390+
.. figure:: st7735.png
391+
:align: center
392+
344393
telnet
345394
------
346395

1.44 MB
Loading

0 commit comments

Comments
 (0)