User's Manual

VT-M2M-TC VM
All Rights Reserved
clear: ClearGPIOtolowlevel,needsettheGPIOasoutputfirst.
gpionum:TheGPIObeoperated.0to5isEXTIO,10isbacklightpower
ex1:SetEXTIO2tohigh.
$sudo./gpioctldirout2
$sudo./gpioctlset2
 ex2:ReadlevelofEXTIO2.
$sudo./gpioctldirin2
$sudo./gpioctlget2
ex3:SetEXTIO2tolow.
$sudo./gpioctldirout2
$sudo./gpioctlclear2
2.4SerialCOMControl
a. RS232DB9COM:
OpentheCutecom,thissoftwaregetfr om“UbuntuSoftwareCenter.
$sudocutecom
SelectDevice,Baudrate, Databits, Stopbits, Parity , Handshake,then press“Open device”
button.
b. COMportongreenterminal:
ShortPin1,2ofgreenterminal
$sudo./serialdemo–d/dev/ttyS1–b9600–r–w“hello”
Can displaysome“hello”outputs