PiicoDev RGB LED Module - Microbit Guide quick question.Does this work with a Micro:bit V1? I keep getting memory allocation errors on mine

Does this work with a Micro:bit V1? I keep getting memory allocation errors on mine.

3 Likes

Hi Graeme,
Welcome to the forum :slight_smile:

In order to have one library that works for the micro:bit, Pico, and Pi there was a process to minify the code and compress it down as much as possible to fit on the micro:bit. The minified/unified libraries can be found here: CE-PiicoDev-Unified/min at main · CoreElectronics/CE-PiicoDev-Unified · GitHub

I’m not sure if the minified library was made small enough to fit on the V1 micro:bit as the V2 has a bit more memory space, I’ll double-check with a member of our PiicoDev design team and get back to you with V1 compatibility.

5 Likes

Hi Graeme
We recommend Micro:bit v2 for all PiicoDev projects (and for any MicroPython project in general).
The v1 just doesn’t have enough memory - MicroPython alone consumes practically all the onboard resources.

5 Likes

Thanks, that easily fixed by getting a V2. I thought I was doing something wrong.

4 Likes

Hi Graeme,

No worries, it’s always good to ask the question and get clarification before spending too much time tearing your hair out on a problem :grin:
Let us know if you have any troubles with a V2 micro:bit and we’ll get it sorted out!

4 Likes