Skip to content

Instantly share code, notes, and snippets.

@dglaude
Last active November 27, 2020 20:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dglaude/fc66d29f250ecbae7b777a27ec65ef45 to your computer and use it in GitHub Desktop.
Save dglaude/fc66d29f250ecbae7b777a27ec65ef45 to your computer and use it in GitHub Desktop.
EnviroPlus-FeatherWing TODO
Idea about the example
----------------------
simpletest example could be only present in each individual library.
More complex example that use the plotter could be in the main library for EnviroPlus-FeatherWing.
Move from gas to MICS6814
-------------------------
Replace gas.py from library with the new library https://github.com/pimoroni/Pimoroni_CircuitPython_MICS6814
0) (optional) add MICS6814 to the community bundle
1) remove library/pimoroni_envoriwing/gas.py
2) create a new link to Pimoroni_CircuitPython_MICS6814
3) in folder exemples, adapt the following 4:
gas_sensor.py:from pimoroni_envirowing import gas
plotter_gas.py:from pimoroni_envirowing import gas
plotters_combined.py:from pimoroni_envirowing import gas, screen
test_all.py:from pimoroni_envirowing import gas
Move to the new LTR559
----------------------
Replace https://github.com/pimoroni/ltr559-python/ by https://github.com/pimoroni/Pimoroni_CircuitPython_LTR559/
1) remove the link submodules/pms5003-circuitpython
2) create a new link to Pimoroni_CircuitPython_MICS6814
3) in folder exemples, adapt the following:
plotter_light_and_sound.py:from pimoroni_circuitpython_ltr559 import Pimoroni_LTR559
proximity_and_light.py:from pimoroni_circuitpython_ltr559 import Pimoroni_LTR559
plotters_combined.py:from pimoroni_ltr559 import LTR559
test_all.py:from pimoroni_ltr559 import LTR559
4) This could be the last user of the i2cdevice-python submodule, so it might be possible to unlink
Move from pms5003 to PM25
-------------------------
Stop using pimoroni_pms5003 and start using adafruit_pm25
1) Verify if some improvement from pms5003 can be applied to pm25 and make needed PR
2) Replace the use of https://github.com/pimoroni/pms5003-circuitpython/ by the use of https://github.com/adafruit/Adafruit_CircuitPython_PM25
3) in folder exemples, adapt the following 4:
particulate_sensor.py:from pimoroni_pms5003 import PMS5003
plotter_particulate.py:from pimoroni_pms5003 import PMS5003
plotters_combined.py:from pimoroni_pms5003 import PMS5003
test_all.py:from pimoroni_pms5003 import PMS5003
Adapt screen to not use physical_feather_pins
---------------------------------------------
The screen library /lib/pimoroni_envirowing/screen still use pimoroni_physical_feather_pins to find the command, chip_select and reset pin.
__init__.py: import pimoroni_physical_feather_pins
__init__.py: display_bus = displayio.FourWire(spi, command=pimoroni_physical_feather_pins.pin19(), chip_select=pimoroni_physical_feather_pins.pin20(), reset=pimoroni_physical_feather_pins.pin21())
__init__.py: display_bus = displayio.FourWire(spi, command=pimoroni_physical_feather_pins.pin19(), chip_select=pimoroni_physical_feather_pins.pin20())
With some default parameter, it should be possible not to have to modify the current example and at least work on M4.
Chase any left use of physical_feather_pins
-------------------------------------------
Not sure exaclty what other usage are left.
@dglaude
Copy link
Author

dglaude commented Nov 12, 2020

@Gadgetoid
Copy link

I've PR'd MICS6814 into the community bundle, which is at least a step in the right direction. Thanks for keeping at this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment