PicoMite: serial I/O (from MMB4L)


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4378
Posted: 02:07pm 05 Jan 2022      

PicoMite bug or (another) user failure ?

> ? MM.Info(Device)
PicoMite
> ? MM.Info(Version)
5.0703
> List "bug.bas"
Option Base 0
Option Default None
Option Explicit On

SetPin GP1, GP0, COM1

Open "COM1:9600" As #1
Close #1
Open "COM1:9600" As #1
Close #1

End
> run "bug.bas"
[9] Open "COM1:9600" As #1
Error : Pins not set for COM1


Obviously this is a much reduced version of some code which had a reasonable purpose behind closing and reopening a serial port.

Best wishes,

Tom