Thanks both,
@bdunkleysmith, thanks for the code which was what I was looking for using my old boards as I knew writing to the serial port worked when I moved the the standard Ardunio IDE. I'll give you code a test so I have it available.
@thetahsk, yes it was the D1 mini and that was exactly how I initially set the board to and it ran the code (I could see from the LED flashing as programmed) but no messages from Log.
I've just tried your code and it works after some random characters
********************* PROGRAM STARTING ****************
rll�r$�n �l�b|���rb�b�nnlnnbbp�$blrlp�n0 �l� bn�n��b��nn'l�l`�nn$`nr���n rr�`p�n� r�<bbn�nb��nn'l`�nn$`nr���n rl`r��n rl`� �l`��n�`AppStart
on
off
on
off
on
If I add another log statement after the AppStart statement and before you call to On ....
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
Log ("My Start")
On(0)
End Sub
I get the following, but the log screen goes crazy and flashes like mad for a while then goes steady.
rll�r$�n �l�b|���rb�b�nnlnnbbp�$blrlp�n� �l� bn�n��b��nn'l�l`�nn$`nr���n rr�`p�n� r�bbn�nb��nn'l`�nn$`nr���n rl`r��n rl`� �l`��n�`AppStart
My Start
on
off
on
off
on
off
on
Does this sound like a driver problem?
Why am I getting the random characters - not a probem, just interested?
If I add a delay before using Log it still throughout the random text, but then the screen works fine.
Private Sub AppStart
Serial1.Initialize(115200)
Delay (3000)
Log("AppStart")
Log ("My Start")
On(0)
End Sub