Comments: Graph Sensor Data with Python and Matplotlib

Pages

Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • -------------------- Tech Support Tips/Troubleshooting/Common Issues --------------------

    Errata

    There was a small typo in the section called "Plot Sensor Data." The Python code shifted the bits too much on the temperature register:

    .
    .
    .
    temp_c = (val[0] << 4) | (val[1] >> 5)
    

    The correct number of bits that should be shifted is 4 bits:

    .
    .
    .
    temp_c = (val[0] << 4) | (val[1] >> 4)
    

    The example is now correct.


If you've found an issue with this tutorial content, please send us your feedback!