PicoMite serial Input


Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6547
Posted: 08:05pm 06 Jan 2025      

This works for me MMBasic V6.00.01
 '
 OPTION EXPLICIT
 OPTION DEFAULT INTEGER
 DIM x$
 
 SETPIN GP1,GP0,COM1
 OPEN "com1: 38400" AS #4
 
 DO
   INPUT #4, x$
   PRINT x$
 LOOP
 



requires a LF or CRLF pair.
CR on it's own is not sufficient with a serial port but OK on USB console.

Jim