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: capbily@163.com Email for Tech Support: dev_friendlyarm@163.com
6.2.2.2 LED APIs
LED APIs:
Parameters and Return Value
int setLedState(
int ledID,
int ledState )
ledID: LED you want to access (0~3)
ledState: 1 is on,0 is off
Return Value:
If this operation succeeds it will return 0
otherwise it will return -1
6.2.2.3 PWM APIs
PWM Buzzer APIs:
Parameters and Return Value
int PWMPlay(int frequency);
frequency: frequency of sound
Return Value:
If this operation succeeds it will return 0
otherwise it will return -1
Play a Buzzer with the specified
frequency
Return Value:
If this operation succeeds it will return 0
otherwise it will return -1
6.2.2.4 ADC APIs
ADC APIs:
Parameters and Return Value
Return Value:
If this operation succeeds it will return
the conversion result otherwise it will
return -1
Read an ADC conversion result
6.2.2.5 EEPROM APIs
EEPROM APIs:
Parameters and Return Value
Return Value:
If this operation succeeds it will return a file
descriptor otherwise it will return -1.
Open an IIC device and return a file
descriptor. After an IIC device is opened
successfully you can call
“writeByteDataToI2C” and
“readByteDataFromI2C” to operator the
EEPROM.
Write data to EEPROM (one byte on each