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!

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy