Casio IT-2000D Manual de usuario Pagina 115

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 224
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 114
115
7.4.1 Creation of Execution File
Application developers should develop programs using MS-DOS, IBM PC/AT BIOS and various
application development libraries. The following sample program is used to turn on and off the
backlight. With this program the backlight will be turned on or off if either "1" or "0", respectively,
is entered through the numeric keypad. This program can be terminated by the input of the ESC key.
#include <stdio.h>
#include "syslib.h"
void main()
{
char ch;
for (; ;) {
switch (ch = getch()) {
case '0':
case '1':
SYS_SetBackLight(ch-'0'); /* System Library function */
break;
case 0x1B:
exit(0);
default:
break;
}
}
} <Test.c>
Vista de pagina 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 223 224

Comentarios a estos manuales

Sin comentarios