Skip to content

Fixed unwanted conversions in single shot mode / Changed Auto_Range.ino

Compare
Choose a tag to compare
@wollewald wollewald released this 16 Sep 16:59
· 47 commits to master since this release
2321a2f

For all settings in the conversion register the conversion register is read, the relevant bits are set to zero and then the relevant bits are set to the desired values. What I had overlooked is bit 15. When reading, a 1 means that no conversion is ongoing. When writing a 1 means in single shot mode that a conversion is triggered. Therefore all settings triggered a conversion in single shot mode.

Moreover I have simplified the Auto_Range.ino sketch. I was a bit more complicated than necessary.