![MYiR MYC-C8MMQ6-8E2D-160-I Linux Development Manual Download Page 20](http://html1.mh-extra.com/html/myir/myc-c8mmq6-8e2d-160-i/myc-c8mmq6-8e2d-160-i_linux-development-manual_1862477020.webp)
4.4 GPIO-KEY
This example demonstrates how to read key state and key values in Linux user space. After running the gpio_key program, press
or release the K3 key, the debug serial port will output the relevant status information. Press "Ctrl-C" to end the program.
Run the program on board:
# ./gpio_key /dev/input/event1
Hit any key on board ......
key 3 Pressed
key 3 Released
key 3 Pressed
key 3 Released
4.1 GPIO-KEY
20
Summary of Contents for MYC-C8MMQ6-8E2D-160-I
Page 1: ......
Page 5: ...1 Software Resource 5 ...
Page 23: ...4 3 RTC 23 ...
Page 41: ...Figure 5 2 8 Kit configure 5 2 Config QtCreator 41 ...