Hardware requirements
Mini/micro USB cable
MIMXRT1170-EVKB board
Personal Computer
Board settings
Remove 0Ω resistors R404,R406.
Matrix and Jumper settings for KPP:
row2 <—–> J10 #8 row3 <—–> J10 #12 col2 <—–> J10 #10 col3 <—–> J10 #6
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
Connect the 2*2 matrix to the Jumpers mentioned above.
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 you press any key on matrix, the log will show the right key you have pressed. If the press is long, it will add the long press mention. The log would be seen on the OpenSDA terminal like:
KPP Driver Example Start.
Key SW1 was pressed.
Key SW3 was pressed.
This was a long press.
......