Go Down

Topic: analogRead operating as an 8 bit A/D, how to get it to operate as a 12 bit? (Read 176 times) previous topic - next topic


I purchased the MKRZERO specifically because it has 12 bits A/D's, however the values returned by analogRead are 8 bit values.

How does one go about getting the A/D to operate as a 12 bits A/D and return values 0-4095, instead of 0-1023?


Hi jester

Try analogReadResolution(12); in setup() to change the read resolution.


Go Up