sd_png#
Overview#
The SD PNG Demo application reads the PNG pictures from the SD card, decodes them, and shows them in the LCD panel one by one. Note: Please make sure the card you are using is FAT32 format.
Supported Boards#
MIMXRT1170-EVKB
Hardware requirements
Micro USB cable
MIMXRT1170-EVKB board
JLink Plus
5V power supply
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel or RaspberryPi panel
SD card
Board settings
Connect the panel to J48. For RaspberryPi panel, connect the panel to J84, then connect the panel’s 5V pin to J85-1, GND pin to J85-2.
Unzip the pics.zip, place the png pictures to the SD card.
Please make sure R136 is weld for GPIO card detect and then insert the SDCARD into card slot(J15).
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build the project, the project uses RK055MHD091 by default, to use other panels, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) to y in prj.conf under board example folder before project generation. The supported panels can be found in examples_boards<board>\project_segments\display_support\Kconfig.prjseg. Or change the macro DEMO_PANEL in mcux_config.h of the project, which number represents which panel can be found in display_support.h and mcux_config.h
Insert SD card to card slot
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
MIMXRT1160-EVK
Hardware requirements
Micro USB cable
MIMXRT1160-EVK board
JLink Plus
5V power supply
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel
SD card
Board settings
Connect the RK055MHD091-CTG LCD board to J48.
Unzip the pics.zip, place the png pictures to the SD card.
Please make sure R136 is weld for GPIO card detect and then insert the SDCARD into card slot(J15).
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build the project, the project uses RK055MHD091 by default, to use other panels, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) to y in prj.conf under board example folder before project generation. The supported panels can be found in examples_boards<board>\project_segments\display_support\Kconfig.prjseg. Or change the macro DEMO_PANEL in mcux_config.h of the project, which number represents which panel can be found in display_support.h and mcux_config.h
Insert SD card to card slot
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
FRDM-IMXRT1152
Hardware requirements
Micro USB cable
FRDM-IMXRT1152 board
JLink Plus
5V power supply
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel or RaspberryPi panel
SD card
Board settings
Connect the panel to J62. For RaspberryPi panel, connect the panel to J58, then connect the panel’s 5V pin to J56-1, GND pin to J56-2.
Unzip the pics.zip, place the png pictures to the SD card.
Please make sure R23 is weld for GPIO card detect and then insert the SDCARD into card slot(J14).
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build the project, the project uses RaspberryPi by default, to use other panels, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) to y in prj.conf under board example folder before project generation. The supported panels can be found in examples_boards<board>\project_segments\display_support\Kconfig.prjseg. Or change the macro DEMO_PANEL in mcux_config.h of the project, which number represents which panel can be found in display_support.h and mcux_config.h
Insert SD card to card slot
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.