flexio_mculcd_polling#
Overview#
This example shows how to use flexio mculcd driver polling APIs to drive MCU LCD panel. Please focus on functions DEMO_LcdWriteCommand, DEMO_LcdWriteData, and DEMO_LcdWriteMemory to learn how to use the polling APIs.
In this project, the panel is devided into 4 windows, the project changes the color of each window one by one. The behavior is:
Project starts with black screen.
Fill window one by one as red, and delay 0.5s after fill each window.
Fill window one by one as green, and delay 0.5s after fill each window.
Fill window one by one as blue, and delay 0.5s after fill each window.
Fill window one by one as white, and delay 0.5s after fill each window.
Go to step 2.
+—————————+—————————+ | | | | | | | | | | window 0 | window 1 | | | | | | | +—————————+—————————+ | | | | | | | | | | window 2 | window 3 | | | | | | | +—————————+—————————+
Supported Boards#
FRDM-MCXA156
Hardware requirements
Type-C USB cable
FRDM-MCXA156 Board
Personal Computer
LCD-PAR-S035 board
Board settings
Connect the LCD panel to header J8.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J21.
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 project running, the panel shows as overview described.
FRDM-MCXN236
Hardware requirements
Type-C USB cable
FRDM-MCXN236 board
Personal Computer
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika.
Board settings
Connect the panel to header J8. Pin 1 match Pin 1.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J10.
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 project running, the panel shows as overview described.
FRDM-MCXN947
Hardware requirements
Type-C USB cable
FRDM-MCXN947 Board
Personal Computer
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika.
Board settings
Connect the panel to header J8. Pin 1 match Pin 1.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J17.
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 project running, the panel shows as overview described.
FRDM-MCXN947T
Hardware requirements
Type-C USB cable
FRDM-MCXN947T Board
Personal Computer
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika.
Board settings
Connect the panel to header J8. Pin 1 match Pin 1.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J17.
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 project running, the panel shows as overview described.
MCX-N5XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK board
Personal Computer
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika.
Board settings
Connect the panel to header J20. Pin 1 match Pin 1.
Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J5) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 project running, the panel shows as overview described.
MCX-N9XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N9XX-EVK Board
Personal Computer
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika.
Board settings
Connect the panel to header J20. Pin 1 match Pin 1.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J5.
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 project running, the panel shows as overview described.
FRDM-MCXE31B
Hardware requirements
Type-C USB cable
FRDM-MCXE31B board
Personal Computer
LCD-PAR-S035 board
Board settings
Connect the LCD panel to header J8.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM 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 project running, the panel shows as overview described.
FRDM-MCXE32B
Hardware requirements
Type-C USB cable
FRDM-MCXE32B board
Personal Computer
LCD-PAR-S035 board
Board settings
Connect the LCD panel to header J8.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM 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 project running, the panel shows as overview described.
FRDM-MCXA266
Hardware requirements
Type-C USB cable
FRDM-MCXA266 Board
Personal Computer
LCD-PAR-S035 board
Board settings
Connect the LCD panel to header J8.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM 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 project running, the panel shows as overview described.
FRDM-MCXA366
Hardware requirements
Type-C USB cable
FRDM-MCXA366 Board
Personal Computer
LCD-PAR-S035 board
Board settings
Connect the LCD panel to header J8.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM 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 project running, the panel shows as overview described.
FRDM-MCXA577
Hardware requirements
Type-C USB cable
FRDM-MCXA577 Board
Personal Computer
LCD-PAR-S035 board
Board settings
Connect the LCD panel to header J8.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM 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 project running, the panel shows as overview described.
FRDM-MCXA287
Hardware requirements
Type-C USB cable
FRDM-MCXA287 Board
Personal Computer
LCD-PAR-S035 board
Board settings
Connect the LCD panel to header J8.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM 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 project running, the panel shows as overview described.