![Avalue Technology VNS-10W01 Скачать руководство пользователя страница 26](http://html.mh-extra.com/html/avalue-technology/vns-10w01/vns-10w01_quick-reference-manual_3024819026.webp)
VNS-10W01
26 VNS-10W01 Quick Reference Guide
3.3 For Ubuntu 19.04 LED instruction
3.3.1 File list
No
Filename
Description
1
VNS LED Control Quick Guide_v1.0.doc
Guideline document
2
VNS_LED-20181121.zip
Demo app source code
3
vns_led
Demo app execution file
3.3.2 Building
1. Prepare a VNS device with Ubuntu(16.04above) and install complier package(Ex: gcc,
make, c-library).
2. Make a working folder in Ubuntu Ex: app.
3. Unzip VNS_LED.zip to working folder.
4. In working folder, enter
”$ make” to complier and it would create execute file ”
vns_led
”.
5. Copy
”
vns_led
” to VNS device and set to executable file.
6. Start to test/execute in root right.
3.3.3 EC, I2C Definition on VNS device
Bus Number (on VNS): 0x02
EC I2C Device Address (on VNS): 0x70
EC I2C Read Command: 0x80
EC I2C Write Command: 0x81
LED I2C Device Address (on EC): 0x01
LED Data Address (on LED Device): 0xbc
3.3.4 Operation (vns_led)
Syntax: vns_led <led_id>
Option:
led_id: 0=off, 1=red, 2=green
Sample:
vns_led 1
// light on the RED LED
vns_led 2
// light on the GREEN LED
vns_led 0
// turn off LED
3.3.5 APP & API Introduction (vns_led.c, i2c-dev.h, i2cbusses.h)
3.3.5.1 Open I2C driver
int open_i2c_dev(int i2cbus, char* filename, size_t size, int quiet);
Open i2c driver, and return file handle.
Parameter:
Содержание VNS-10W01
Страница 8: ...VNS 10W01 8 VNS 10W01 Quick Reference Guide Note Specifications are subject to change without notice ...
Страница 11: ...Quick Reference Guide VNS 10W01 Quick Reference Guide 11 1 5 System Dimensions Unit mm ...
Страница 14: ...VNS 10W01 14 VNS 10W01 Quick Reference Guide Step3 Slide VNS 10W01 onto the Monitor ...
Страница 15: ...Quick Reference Guide VNS 10W01 Quick Reference Guide 15 2 Hardware Configuration ...
Страница 18: ...VNS 10W01 18 VNS 10W01 Quick Reference Guide 3 LED Instruction ...
Страница 25: ...Quick Reference Guide VNS 10W01 Quick Reference Guide 25 c Press enter key to turn all LED off ...
Страница 29: ...Quick Reference Guide VNS 10W01 Quick Reference Guide 29 4 Front Touch Button Function Instruction ...