int value;
void setup() {
pinMode(13, OUTPUT);
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
void loop() {
value = random(1, 100); //select a random number between 0 and 100:
Serial.print(value);
Serial.write(13);//end data(CR);
}
MODE7
VDU 23,1,0;0;0;0; : REM Disable cursor
VDU4
arduino%=OPENUP("COM18: baud=9600 parity=N data=8 stop=1")
PRINT "Com 18 Opened as Channel ";arduino%
140 INPUT#arduino%,number$ :REM Get Data being sent
VDU30
PRINT TAB(6,1)" ";
VDU30
PRINT TAB(0,1)"DATA=";number$
GOTO 140