(2021-03-02, 11:08 PM)DcnPat Wrote: Is there a HOWTO for writing sensor drivers? I'm wondering how to get the sensors on the WaveShare Sense Hat (B) working:
ADS1015: 4 channel ADC Device address:0x48 (may already work - testing to see if I can configure it.
ICM-20948: 9DOF sensor Device address:0x68
LPS22HB: Barometric pressure sensor Device address:0x5C
SHTC3: Temprature & Humidity sensor Device address:0x70
TC34725: Color sensor Device address:0x29 (not sure if this is useful, but it is on the board)
WaveShare Wiki page https://www.waveshare.com/wiki/Sense_HAT_(B)
Currently there is not any HOWTO to write sensors drivers. We use adafruit drivers/libraries, so you only need enough python3 skills to implement them into openplotter-12c app following the example of any library already implemented. If an adafruit library exists for a sensor we could add it easily on request.
ICM-20948: already supported on next openplotter-pypilot app version.
LPS22HB: no plans to add this but there is an available library.
SHTC3: no plans to add this but there is an available library.
TC34725: no plans to add this.
The openplotter-i2c app needs to be adapted to new versions of Signal K and will be partially rewritten soon. If anyone wants to add any sensors, please contact us to coordinate.