JianyuWang0623 opened a new pull request, #16094:
URL: https://github.com/apache/nuttx/pull/16094

   ## Summary
   Enable GPIO and LCD for the szpi-esp32s3 development board.
   1. Init GPIO for  LCD SPI D/C
   2. Add doc for GPIO 
   3. Add support for ST7789 LCD
   4. Init configuration for LCD 
   5. Add doc for LCD
   #### Enabled GPIOs
   | Num  | Type      | Func / Location |
   |------|-----------|-----------------|
   | IO39 | Output    | LCD SPI D/C     |
   | IO10 | Input     | GP1.25-5P expansion interface 1 (left side, near the 
speaker) |
   | IO11 | Interrupt | GP1.25-5P expansion interface 1 (left side, near the 
speaker) |
   #### Test LCD
   ```
   nsh> fb
   ```
   
![lckfb-szpi-esp32s3-lcd](https://github.com/user-attachments/assets/b240a9c2-fbeb-4f4e-8420-ecd3923f8182)
   
   
   
   ## Impact
   boards/szpi-esp32s3
   
   ## Testing
   1. GPIO
   ```bash
   # With hardware check, the pin levels meet the expected requirements.
   
   #     Output high
   nsh> echo 1 > /dev/gpio39
   nsh> cat /dev/gpio39
   1
   
   #     Output low
   nsh> echo 0 > /dev/gpio39
   nsh> cat /dev/gpio39
   0
   ```
   2. LCD
   See the picture above for the displayed screen.
   ```bash
   nsh> fb
   VideoInfo:
         fmt: 11
        xres: 240
        yres: 320
     nplanes: 1
   PlaneInfo (plane 0):
       fbmem: 0x3fc8e9f8
       fblen: 153600
      stride: 480
     display: 0
         bpp: 16
   Mapped FB: 0x3fc8e9f8
    0: (  0,  0) (240,320)
    1: ( 21, 29) (198,262)
    2: ( 42, 58) (156,204)
    3: ( 63, 87) (114,146)
    4: ( 84,116) ( 72, 88)
    5: (105,145) ( 30, 30)
   Test finished
   nsh>
   ```
   3. CI
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to