Thanks again for your help with this.
I am using a Lopy4 on a Pycom/Makr Expansion Board 3.1
I have attached 2 photos - let me know if you need to see any close-ups.
The diagram is exactly as you have here:
The only difference is that I did not use a +5V connection from the power supply to VIN on the Lopy4 - because I am powering it via USB whilst testing.
I checked the voltage output from the battery pack (show on the photo - 3 batteries so assuming 4.5V) but it was in fact around 3.7V.
So, I switched that for a 4-battery pack using NiMH - as suggested in this article:
That was showing a more healthy 5V and the lights did look brighter.
However I still have the problem of random results whenever I run the simplest of code.
Out of interest - is there a neopixels.py library available ?
That’s where I started off, looking at examples on the Adafruit website and other example projects such as this one:
(my project is similar to this)
Allexamples I have read suggest that you can just “import neopixels” - but I have not been able to find a neopixels.py library file,or rather one that you can just copy and it works. The Adafruit site talks about installing a whole ton of libraries, but whilst that may work on a PC, I don’t see how you can get that onto a LoPy4. The Adafruit site does say that their examples will run on MicroPython, but I always end up reading that I need CircuitPython.
My preference is for simplicity and the examples you posted seem very clear.
I just need to get them working !