
PT-20 Programming Guide
You can check the FN-Key function that is default setting or
custom setting.
smKeyNum: 0 F1, 1 F2, 2 F3, 3 F4, 4 F5, 5 F6
1 : Custom Setting。
0 : Default Setting。
-1: Error。
To set a custom setting for FN-Key.
char FNKey_SetUserDef(short smKeyNum, void (*pslFunction)(void));
void Sample01FN(void)
{
_printf(“This is Test!!”);
}
void SetFNKey(void)
{
if (FNKey_SetUserDef(0, Sample01FN))
{
_printf(“Set F1 UserDefine OK!”);
}
if (FNKey_SetUserDef(0, NULL))
{
_printf(“Set F1 Default OK!”);
}
}
The function is used to set the FN-Key. After set successed, the
FN-Key is changed for custom setting function. You can set F1~6, if you
want to set default, please set pslFunction = NULL.
smKeyNum: 0 F1, 1 F2, 2 F3, 3 F4, 4 F5, 5 F6
1 : Set success。
0 : Set false。
To set power on by scan key.
BOOL SetScanKeyPwOn(BOOL state);
This function can set power on by scan key.
Kommentare zu diesen Handbüchern