created class, removed a few unneccesary rows

In order to make edits to class readable i commit this mostly white
space edit. Further more it removes a few application specific or
testing lines.
This commit is contained in:
Simon Albinsson
2018-04-07 22:28:28 +00:00
parent 3faf3c621e
commit 3e10e27c85
2 changed files with 64 additions and 70 deletions

View File

@@ -10,3 +10,5 @@ It currently lacks support for many features features and is more of a crude dem
* reading raw-values
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)
After 12 hours of run time the base-line data is saved once every hour as per the "device driver integration guide". The data is saved as json to ~/sgp_config_data.txt