Download Print this page

AOpen WARM TOUCH Manual page 30

Advertisement

in
byte_value, 0x050c
and
byte_value, 0xc0
if ( byte_value = 0x00 ) { gravity vector = ? and what to do. }
系統組裝有關, 軟體請依系統實際組裝狀態撰寫.
if ( byte_value = 0x40 ) { gravity vector = ? and what to do. }
if ( byte_value = 0x80 ) { gravity vector = ? and what to do. }
if ( byte_value = 0xc0 ) { gravity vector = ? and what to do. }
In DOS, you just use ASM with "in" "out" command or C with "inportb" "outportb" or QBasic with "INP" "OUT".
If your program is in Windows, you have to write a Ring-0 I/O driver to access 0x4e/0x4f I/O ports.
Or, you can use the DLL writen by some one:
IO.DLL - http://www.geekhideout.com/iodll.shtml
WinIO.DLL - http://www.internals.com/
How to write a C/C++/Basic or the other program: all description are on the OfficalWebSite and ZIP file,
please reference it.
//; 重力場指向, 此處的 "?" 與
30

Advertisement

loading

This manual is also suitable for:

Wt22m-rhWt22m-rhi