pimoroni / icm20948-python

Python library for the Pimoroni ICM20948 breakout
https://shop.pimoroni.com/products/icm20948
MIT License
48 stars 22 forks source link

Adding read_temperature #5

Closed dannystaple closed 4 years ago

dannystaple commented 4 years ago

Adding a getter that reads the temperature, based on numbers from the datasheet. The 21's happen to be the same but are separately defined in the formula, so should be separate constants.

It is a read, and not a property since it does have to fetch registers from the device.

dannystaple commented 4 years ago

Sounds like I have some tests to write... On it.