SOLVED:
I pared things back to a most basic bit of test code, then made a simple 3 line function test stub and tied to import it into a simple test program. I tried various options and permutations and discovered that it would work if and only IF the function/module that needed to be imported had been saved into the Pico’s internal memory. Although the program ran fine from the Windows computer’s directory, the module itself needed to be on the Pico internal memory. I am guessing this is a path issue?
So now it’s just a case of making sure the the sh1106.py file is on the Pico itself, not on the computer.
My display is now happily saying
“Testing 1”
In answer to your question Robert, it is the I2C version of the SSH1106. I got an ‘TypeError: 'id' argument required’ at first, but then added an id number of 0 to the i2c setup line in your sample code and bingo! we are up and running.
Your comment:
Thonny ad the way to transfer files to the board"
got me thinking. So thank you for your help.
Cheers
Pip