![Avnet MaaXBoard Nano Скачать руководство пользователя страница 16](http://html.mh-extra.com/html/avnet/maaxboard-nano/maaxboard-nano_user-manual_3033013016.webp)
MaaXBoard-Nano-Linux-Yocto-Lite-UM-V1.0
http://www.embest-tech.com
16
Chapter 3 Feature Configuration & Introduction
First of all, please refer to the previous chapter and boot up the system. Then configure or use the
functions according to the following guidance.
3.1 USER LED
User can control the 2 single color LED indicators, LED0 and LED1 (corresponding to usr_led and
sys_led) on MaaXBoard Nano. Execute the following instructions in serial terminal to control them.
Light out LED:
root@maaxboard-nano:~# echo 0 | tee /sys/class/leds/usr_led/brightness
root@maaxboard-nano:~# echo 0 | tee /sys/class/leds/sys_led/brightness
Light up LED:
root@maaxboard-nano:~# echo 1 | tee /sys/class/leds/usr_led/brightness
root@maaxboard-nano:~# echo 1 | tee /sys/class/leds/sys_led/brightness
3.2 Button
MaaXBoard Nano support 3 button: USR_KEY and PWR.
1. Test USR_KEY button with following instructions:
Enter
evtest
command, then choose the event id for
gpio_keys
root@maaxboard-nano:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: 30370000.snvs:snvs-powerkey
/dev/input/event1: fts_ts
/dev/input/event2: gpio_keys
Select the device event number [0-2]: 2
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio_keys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 256 (BTN_0)