-------------------- Tech Support Tips/Troubleshooting/Common Issues --------------------
Errata
There was a small typo in experiment 4. 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 codes in Experiment 4 are now correct. I left the print out for anyone interesting in viewing the register before and after the bits are shifted. It's currently commented out with a #. Just remove it to view.
-------------------- Tech Support Tips/Troubleshooting/Common Issues --------------------
Errata
There was a small typo in experiment 4. The Python code shifted the bits too much on the temperature register:
The correct number of bits that should be shifted is 4 bits:
The example codes in Experiment 4 are now correct. I left the print out for anyone interesting in viewing the register before and after the bits are shifted. It's currently commented out with a
#
. Just remove it to view.