vdubadub wrote:... Okay easy fix! ...
So your line 20 and 28 need to be changed just a little
line 20 should read io(po, pinNo, pinStat)
line 28 should read io(pwo, pinNo, pinStat)
... I find ... fixing these examples myself ...
Yes that worked. In terms of fixing the examples I couldn't disagree more - examples should work. This is really important when people are learning new concepts and it is good to see lots of examples in the Esp8266 Basic Code Reference. I agree that changing the examples takes learning to the next level.
I'm running the examples to see what I can do with a stock standard LoLin NodeMcu V3 Dev Board with Esp8266 Basic loaded. The examples at https://www.esp8266basic.com/examples.html seem to be bug free so I wouldn't recommend this topic on the forum.
Thanks to everyone, I really like the addition of the slider on the PCM example - if only I knew what PCM was hey?
I don't understand why servo angle doesn't go from 0 to 360. I thought I could probably dim the led on Pin 2 with servo similar to the PCM command. Anyway, I'm still having problems trying to use the servo command to flip the board.