fbdev_freertos#
Overview#
This example shows how to use the fbdev component. The fbdev masks the difference of LCD controllers and provides a unified APIs for upper layers. At the same time, the frame buffers are managed by the FBDEV. When the example runs, you can see a rectangle moving in the screen, and its color changes when reached the border.
Supported Boards#
MIMXRT1170-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1170-EVKB board
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel or RaspberryPi panel
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. Connect 5V power to J43, set J38 to 1-2
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
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
When the example runs, the screen shows what described in overview.
MIMXRT1160-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1160-EVK board
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel
Board settings
Connect the panel to J48 Connect 5V power to J43, set J38 to 1-2
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
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
When the example runs, the screen shows what described in overview.
EVK-MIMXRT595
Hardware requirements
Micro USB cable
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika. (Named as SSD1963 panel in project. Not necessary if use MIPI panel)
EVK-MIMXRT595
Personal Computer
RK055AHD091 MIPI panel (Not necessary if use other panel)
RK055MHD091 MIPI panel (Not necessary if use other panel)
RM67162(G1120B0MIPI) smart MIPI panel (Not necessary if use other panel)
CO5300(ZC143AC72MIPI) smart MIPI panel (Not necessary if use other panel)
Board settings
To use SSD1963 panel: Connect SSD1963 panel to J43.
To use MIPI panel: Connect MIPI panel to J44.
Prepare the Demo
The demo use RK055MHD091 panel 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
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
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.
When Package is used
Modify DEMO_PANEL in mcux_config.h.
#define DEMO_PANEL 4 for “MikroE TFT Proto 5” CAPACITIVE FlexIO panel.
#define DEMO_PANEL 0 for “RK055HDMIPI4M” MIPI Rectangular panel.
#define DEMO_PANEL 3 for “G1120B0MIPI” MIPI Circular panel.
#define DEMO_PANEL 2 for “RK055MHD091A0-CTG MIPI Rectangular panel.(default)
Running the demo
When the example runs, you can see a rectangle moving in the screen, and its color changes when reached the border. There is tearing effect when using the SSD1963 panel, because the panel video buffer could not be fully updated during fresh interval.
MIMXRT700-EVK
Hardware requirements
Micro USB cable
MIMXRT700-EVK
Personal Computer
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika. (Named as SSD1963 panel in project. Not necessary if use MIPI panel)
LCD_PAR_S035 (Not necessary if use MIPI panel)
RK055AHD091 MIPI panel (Not necessary if use other panel)
RK055MHD091 MIPI panel (Not necessary if use other panel)
RaspberryPi Panel (Not necessary if use other panel)
G1120B0MIPI(RM67162) MIPI Circular Display (Not necessary if use other panel)
ZC143AC72MIPI(CO5300) MIPI Circular Display (Not necessary if use other panel)
Board settings
Connect JP1 and JP3.
To use SSD1963 panel: Connect SSD1963 panel to J4. Make sure to connect JP7 2&3 to use 3.3v interface.
To use LCD_PAR_S035: Connect panel to J4 pin 1 to pin 28. Make sure to connect JP7 2&3 to use 3.3v interface, SW1 is 0b011 (8 bit 8080).
To use MIPI panel: Connect MIPI panel to J52.
To use Raspberry panel: Connect the panel to J8. Then connect the panel’s 5V pin to JP43-1, GND pin to JP43-2. Make sure the R75, R76, R79, R80 are connected.
Project Configuration
Refer the section Display Settings in file examples_share_readme.md.
Prepare the Demo
The demo use MIPI RK055MHD091 panel by default, to use other panel,
see Steps to select the panel.
The supported panels can be found in examples/_boards/mimxrt700evk/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
Connect a USB cable between the host PC and the MCU-LINK 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
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
When the example runs, you can see a rectangle moving in the screen, and its color changes when reached the border. There is tearing effect when using the SSD1963 panel, because the panel video buffer could not be fully updated during fresh interval.
FRDM-IMXRT700
Hardware requirements
Type-C USB cable
FRDM-IMXRT700
Personal Computer
RaspberryPi Panel
Board settings
Connect JP1 and JP3.
To use Raspberry panel: Connect the panel to J8. Then connect the panel’s 5V pin to JP43-1, GND pin to JP43-2.
Project Configuration
Refer the section Display Settings in file examples_share_readme.md.
Prepare the Demo
The demo use MIPI Raspberry panel by default, to use other panel,
see Steps to select the panel.
The supported panels can be found in examples/_boards/frdmimxrt700/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
Connect a USB cable between the host PC and the MCU-LINK 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
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
When the example runs, you can see a rectangle moving in the screen, and its color changes when reached the border.
FRDM-IMXRT1152
Hardware requirements
Type-C USB cable
FRDM-IMXRT1152 board
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel or RaspberryPi panel
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.
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
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
When the example runs, the screen shows what described in overview.