home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
nqc_10b1.zip
/
test.nqc
< prev
next >
Wrap
Text File
|
1998-11-02
|
186b
|
17 lines
#ifndef BUTTON
#define BUTTON IN_1
#endif
#define MOTOR OUT_A
task main
{
Sensor(BUTTON, IN_SWITCH);
Fwd(MOTOR, OUT_FULL);
wait(BUTTON == 1);
Off(MOTOR);
}