Casio DT-X11M10E Quick Start Manual page 77

Dt-x11 series
Hide thumbs Also See for DT-X11M10E:
Table of Contents

Advertisement

5. Add a button to your form, double click it and add the following code:
Int32 result = new Int32();
string msg;
result = SystemLibNet.Api.SysSetLED(SystemLibNet.Def.LED_RED, 5,
8, 8);
// .Net values "true" and "false" are "-1" and "0" respectively.
if(result == -1)
{
result = SystemLibNet.Api.SysGetLED();
switch(result & 0x0000000F)
{
case SystemLibNet.Def.LED_OFF:
msg = "LED_OFF";
break;
case SystemLibNet.Def.LED_RED:
msg = "LED_RED";
break;
case SystemLibNet.Def.LED_GREEN:
msg = "LED_GREEN";
break;
case SystemLibNet.Def.LED_ORANGE:
msg = "LED_ORANGE";
break;
default:
msg = "LED_UNKNOWN";
break;
}
MessageBox.Show( msg, "LED");
}
Note:
If you add this code manually you should see the IntelliSense offer you suitable options as
appropriate. If you do not see this, then review steps 2 to 4 in the previous page to make sure you
have not made a mistake.
6. Initiate ActiveSync to establish connection between the DT-X11 and PC.
7. Choose Deploy <name of project> on Build menu.
8. The project will be built and copied to the DT-X11. By default, it will be copied to \Program
Files\<name of project> folder. SystemLibNet.dll will be deployed to the same folder.
9. Check that the program works correctly on the device.
You can also use the CASIO samples as described in Chapter 1.4.
77

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents