MCUXpresso SDK Documentation

elcdif_rgb

elcdif_rgb#

Overview#

The ELCDIF RGB project shows how to drive the RGB interface LCD using eLCDIF driver. If this example runs correctly, a rectangle is moving in the screen, and the color changes every time it reaches the edges of the screen.

The rectangle moving speed might be different with Debug target and Release target, because these two targets spend different time to fill the frame buffer.

Supported Boards#

EVKB-IMXRT1050
Hardware requirements
  • Micro USB cable

  • EVKB-IMXRT1050 board

  • Personal Computer

  • RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)

Board settings
  1. Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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, a rectangle is moving in the screen, and the color changes every time it reaches the edges of the screen.

MIMXRT1060-EVKB
Hardware requirements
  • Micro USB cable

  • MIMXRT1060-EVKB board

  • Personal Computer

  • RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)

Board settings
  1. Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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, a rectangle is moving in the screen, and the color changes every time it reaches the edges of the screen.

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
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Build the project, the project uses RK055MHD091 by default, to use other panels, change #define USE_MIPI_PANEL MIPI_PANEL_RK055MHD091 to #define USE_MIPI_PANEL MIPI_PANEL_RK055IQH091 or #define USE_MIPI_PANEL MIPI_PANEL_RK055AHD091 or #define USE_MIPI_PANEL DEMO_PANEL_RASPI_7INCH in elcdif_support.h.

  4. Download the program to the target board.

  5. 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.

MIMXRT1060-EVKC
Hardware requirements
  • Micro USB cable

  • MIMXRT1060-EVKC board

  • Personal Computer

  • RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)

Board settings
  1. Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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, a rectangle is moving in the screen, and the color changes every time it reaches the edges of the screen.

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
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Build the project, the project uses RaspberryPi by default, to use other panels, change #define USE_MIPI_PANEL MIPI_PANEL_RASPI_7INCH to #define USE_MIPI_PANEL MIPI_PANEL_RK055MHD091 or #define USE_MIPI_PANEL MIPI_PANEL_RK055IQH091 or #define USE_MIPI_PANEL MIPI_PANEL_RK055AHD091 in elcdif_support.h.

  4. Download the program to the target board.

  5. 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.

MIMXRT1040-EVK
Hardware requirements
  • Micro USB cable

  • MIMXRT1040-EVK board

  • Personal Computer

  • RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)

Board settings
  1. Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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, a rectangle is moving in the screen, and the color changes every time it reaches the edges of the screen.

EVK-MIMXRT1064
Hardware requirements
  • Micro USB cable

  • EVK-MIMXRT1064 board

  • Personal Computer

  • RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)

Board settings
  1. Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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, a rectangle is moving in the screen, and the color changes every time it reaches the edges of the screen.

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
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Build the project, the project uses RK055MHD091 by default, to use other panels, change #define USE_MIPI_PANEL MIPI_PANEL_RK055MHD091 to #define USE_MIPI_PANEL MIPI_PANEL_RK055IQH091 or #define USE_MIPI_PANEL MIPI_PANEL_RK055AHD091 in elcdif_support.h.

  4. Download the program to the target board.

  5. 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.