enviro-phat icon indicating copy to clipboard operation
enviro-phat copied to clipboard

Migrate Enviro pHAT library to new breakout packages

Open Gadgetoid opened this issue 6 years ago • 2 comments

Enviro pHAT builds in old, clunky versions of the ads1015, bmpe280 and lsm303d drivers which all have new versions (for Breakout Garden):

  • https://github.com/pimoroni/lsm303d-python
  • https://github.com/pimoroni/bmp280-python
  • https://github.com/pimoroni/ads1015-python

tcs3472 should also receive this treatment and be migrated over to an i2cdevice style driver.

Migrating over to these newer packages should ensure that Enviro pHAT shares any progress, maintenance and bugfixes applied to these libraries.

This probably warrants a new major version and updated examples that use these sensor libraries directly, since it would be counter-productive to maintain Enviro pHAT's hand-holdy, isolated way of doing things versus encouraging users to write portable code.

Enviro+ should be the benchmark for a rehash of this library- ie: it should largely be a thin-as-possible wrapper that installs the above libraries as dependencies.

Gadgetoid avatar Jul 04 '19 21:07 Gadgetoid

The tcs3472 library is a work in progress - https://github.com/pimoroni/tcs3472-python/

Possible alternate approach to this issue would be to leave the Enviro pHAT library as-is, and simply change the examples to use the individual sensor libraries. Enviro pHAT could even depend on the required libraries so that they are installed automagically without any breaking API changes.

Gadgetoid avatar Nov 07 '19 13:11 Gadgetoid