ACR122T – Application Programming Interface
Version 2.02
www.acs.com.hk
Page 41 of 45
Appendix E. Sample Codes for Setting the LED
Example 1: To read the existing LED State.
// Assume both Red and Green LEDs are OFF initially //
// Not link to the buzzer //
APDU = “FF 00 40 00 04 00 00 00 00h”
Response = “90 00h”. RED and Green LEDs are OFF.
Example 2: To turn on RED and Green Color LEDs.
// Assume both Red and Green LEDs are OFF initially //
// Not link to the buzzer //
APDU = “FF 00 40 0F 04 00 00 00 00h”
Response = “90 03h”. RED and Green LEDs are ON,
To turn off both RED and Green LEDs, APDU = “FF 00 40 0C 04 00 00 00 00h”
Example 3: To turn off the RED Color LED only, and leave the Green Color LED unchanged.
// Assume both Red and Green LEDs are ON initially //
// Not link to the buzzer //
APDU = “FF 00 40 04 04 00 00 00 00h”
Response = “90 02h”. Green LED is not changed (ON); Red LED is OFF,
Red LED On
Red LED Off
Green LED On
Green LED Off