PicoMite serial Input


Author Message
Mark
Regular Member

Joined: 26/11/2022
Location: United States
Posts: 99
Posted: 04:24am 06 Jan 2025      

I can't get

INPUT #_fileno%, x$


to work in MMBASIC 5.08 on a Pico to talk to a remote serial port. It just hangs and nothing I type on the remote screen seems to work. _fileno% is a variable with the file number of the COM port assigned when it was opened.

I can print to the remote screen and read data from it using

x$ = Input$(1, #_fileno%)


just fine.

I'm using a Mac and running two instances of the screen program, one connected to the Pico's USB port and one connected to a serial/USB adapter connected the UART pins on the Pico.  I've also tried minicom.

I've tried both COM1 and COM2. I pretty sure the com ports are working.

I could write an input routine based on Input$, but I was hoping there was a line based input editor similar to the way Input x$ works on the main screen.

Mark