Skip to content

Commit

Permalink
analogReadResolution(12); for DUE and Zero
Browse files Browse the repository at this point in the history
Defaule resolution is 10-bits but DUE and Zero provide 12-bit analog to digital converter resolution
  • Loading branch information
KuboJakub authored Mar 30, 2020
1 parent 78befb7 commit 7f707ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MagnetoShield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ void MagnetoShieldClass::begin(){
#endif
#elif ARDUINO_ARCH_SAM
Wire1.begin();
analogReadResolution(12);
#elif ARDUINO_ARCH_SAMD
Wire.begin();
analogReadResolution(12);
#endif
}

Expand Down

0 comments on commit 7f707ad

Please sign in to comment.