![FriendlyARM Mini210S Скачать руководство пользователя страница 177](http://html1.mh-extra.com/html/friendlyarm/mini210s/mini210s_user-manual_2333466177.webp)
Address: Room 1705,Block A1, Longyuan Plaza, Longkouxi Road, Guangzhou, China, 510640 Website:
http://www.arm9.net
Sales: +86-20-85201025 Tech Support: +86-13719442657 Fax: +86-20-85261505
Email for Business and Cooperation:
Email for Tech Support: [email protected]
第
- 177 -
页
int
stopBits );
/* LED */
static
public
native
int
setLedState(
int
ledID,
int
ledState );
/* PWM */
static
public
native
int
PWMPlay(
int
frequency);
static
public
native
int
PWMStop();
/* ADC */
static
public
native
int
readADC();
/* I2C */
static
public
native
int
openI2CDevice();
static
public
native
int
writeByteDataToI2C(
int
fd,
int
pos,
byte
byteData);
static
public
native
int
readByteDataFromI2C(
int
fd,
int
pos);
/*
通用接口
*/
static
public
native
int
write(
int
fd,
byte
[] data);
static
public
native
int
read(
int
fd,
byte
[] buf,
int
len);
static
public
native
int
select(
int
fd,
int
sec,
int
usec);
static
public
native
void
close(
int
fd);
static
{
try
{
System.
loadLibrary
(
"friendlyarm-hardware"
);
}
catch
(UnsatisfiedLinkError e) {
Log.
d
(
"HardwareControler"
,
"libfriendlyarm-hardware library not
found!"
);
}
}
}
Start Eclipse and select your project list and “Refresh” it now you will see the
following information: