README: Todo: fix python3

This commit is contained in:
Simon Albinsson
2018-04-22 19:52:45 +00:00
parent de5851ad89
commit 604da15045

View File

@@ -20,10 +20,12 @@ Quick usage-example:
print(".",end="") print(".",end="")
print() print()
print(sgp.read_measurements()) print(sgp.read_measurements())
## Features that are known to be missing (listing in rough order of importance): ## Features that are known to be missing (listing in rough order of importance):
* Fix python3 compatibility.
* The handing of baseline values are not that great, it should probably be up to the end user to save and restore them as needed. * The handing of baseline values are not that great, it should probably be up to the end user to save and restore them as needed.
* write doc-strings for all or at least most methods * Write doc-strings for all or at least most methods.
* reading raw-values * reading raw-values.
* A more "driver like" class that took care of all chip identification, polling intervals store baseline and so on. * A more "driver like" class that took care of all chip identification, polling intervals store baseline and so on.
If you have the AdaFruit board with built in level shifters and voltage regulator it is should work if you just plug in [SDA to pin 3, SCL to pin 5, VCC to pin 17 and GND to pin 20](https://pinout.xyz/pinout/i2c). You should then be able to find the SGP30 an address 0x58 using `i2cdetect -y 1`. If you get an error message you probbably need to enable i2c in the kernel using [`raspi-config` and reboot](https://learn.sparkfun.com/tutorials/raspberry-pi-spi-and-i2c-tutorial) If you have the AdaFruit board with built in level shifters and voltage regulator it is should work if you just plug in [SDA to pin 3, SCL to pin 5, VCC to pin 17 and GND to pin 20](https://pinout.xyz/pinout/i2c). You should then be able to find the SGP30 an address 0x58 using `i2cdetect -y 1`. If you get an error message you probbably need to enable i2c in the kernel using [`raspi-config` and reboot](https://learn.sparkfun.com/tutorials/raspberry-pi-spi-and-i2c-tutorial)