Problems compiling the ADS1231 library for Arduino Due and Arduino MKR1000 boards

While the current ADS1231 library works well for 8-bit AVR-based MCUs, some people reported problems compiling the library for the Arduino Due and Arduino MKR1000 boards, see:


Background information: The Arduino Due has a SAM3X8E ARM Cortex-M3 CPU, while the Arduino MKR1000 has a SAMD21 ARM Cortex-M0+ CPU.

State of the onion

As we learned from a short internet search, the current library is using Arduino library functions like portInputRegister and portOutputRegister. However, to be more compatible with other architectures than AVR, digitalWrite and digitalRead should be used, actually.

For background information about this, see also:

Recommendation

So we recommend to try the ADS1232 library by Jeffrey M. Kubascik from the beer-gauge repository we found the other day. We will be happy about your feedback:

See also: