pimoroni / EnviroPlus-FeatherWing

CircuitPython library for the Enviro+ FeatherWing
https://shop.pimoroni.com/products/enviro-plus-featherwing
MIT License
10 stars 11 forks source link

Improved use of memory in ScreenPlotter, some bug fixes and an enhancement #24

Closed kevinjwalters closed 2 years ago

kevinjwalters commented 3 years ago

The plotters_combined example dies with a MemoryError on a Feather nRF52840 Express with a PMS5003 attached to an Enviro+ FeatherWing. These changes address this.

Tested with plotters_combined.py and plotter_test.py on Feather nRF52840 Express with 6.0.0.

No dependency on #21 but that could be reviewed at same time as this and applied beforehand.

kevinjwalters commented 3 years ago

@dglaude This looks good if you wish to test on your FeatherS2 setup with Enviro+ FeatherWing and PMS5003. This goes with the standard Pimoroni setup described in https://www.instructables.com/Using-the-Pimoroni-Enviro-FeatherWing-With-the-Ada/ and https://github.com/pimoroni/pms5003-circuitpython/pull/8

kevinjwalters commented 3 years ago

@Gadgetoid This together with https://github.com/pimoroni/pms5003-circuitpython/pull/8 makes the Enviro+ FeatherWing more robust and more memory efficient, let me know what you think.

If/when this is all applied it would be great to get a refresh of submodules and a new release for this.

kevinjwalters commented 3 years ago

I've half broken the page turning for plotters_combined when interval isn't 1 second. I'll fix this up in a day or two. FIXED with https://github.com/pimoroni/EnviroPlus-FeatherWing/pull/24/commits/0c2cf96455fc9a396bd7e444d476503bfd2230c6

kevinjwalters commented 3 years ago

I've effectively tested this on 6.2.0 too while developing support for SCD-30 CO2 sensor.

kevinjwalters commented 3 years ago

@Gadgetoid If you've got the FeatherWing out you might want to review the four outstanding (in every respect) PRs for this repo.

Gadgetoid commented 2 years ago

Of course I attempted to merge the other, smaller PRs and made a total hash of things- conflicting this PR.

Sorry for the lack of response here, I've been totally overwhelmed with a mixture of life and the million other things vying for my attention.

I think I've got an EnviroPlus FeatherWing that survived my move down-south somewhere, but your incredible level of diligence here makes me extremely tempted just to merge :smile: (I don't have more than one Feather board to test with at the moment :grimacing:)

kevinjwalters commented 2 years ago

I did a lot of testing but it's always possible to miss something. That was all pre CircuitPython 7 and only on Feather nRF52840. Worth giving it all a go on an M4 board with CPy 7.

Gadgetoid commented 2 years ago

Okay, merge conflict fixed!

I say we do or die with this :rocket:

Oh and- thank you, very much! This project is a little bit on the fringe of my knowledge so it's difficult to keep things tip top, though I'm slowly starting to work more generally with CircuitPython.