adafruit / Adafruit_CircuitPython_SCD30

Helper library for the SCD30 e-CO2 sensor
MIT License
15 stars 10 forks source link

SCD30 on QT Py giving memory allocation failed #1

Closed HB-Git closed 3 years ago

HB-Git commented 3 years ago

I tried to connect the SCD30 to a QT py through I2C in MU 1.0.3 I got the following error:

Traceback (most recent call last): File "main.py", line 7, in MemoryError: memory allocation failed, allocating 232 bytes

Press any key to enter the REPL. Use CTRL-D to reload.

The code used for main.py is the scd30_simpletest.py

ladyada commented 3 years ago

are you using the mpy for the library file?

HB-Git commented 3 years ago

Oh my.. I'm really sorry, I used the .py version which my first link pointed to. I now took the .mpy version for CircuitPython 6.x and now the communication started with the QT py! Thank you!

ladyada commented 3 years ago

all good, thanx for testing :)