pimoroni / icm20948-python

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

Allow the measured axis to be selected and optionally display as bargraph #2

Closed dfluff closed 2 years ago

dfluff commented 5 years ago

Modifications to the examples/magnetometer.py file:

Use command-line args to select between the default of the Y/Z axes and the X/Y or X/Z axes.

Also use command-line to represent the heading as a bar-graph within the terminal, using the bar-graph drawing method modified from the examples/graph.py file from the Pimoroni vl53l1x-python project: https://github.com/pimoroni/vl53l1x-python

Gadgetoid commented 4 years ago

Thank you for taking the time to write and PR this, it’s much appreciated. Hopefully I’ll be able to test & merge soon!