LowPowerLab Forum

Hardware support => Moteino M0 => Topic started by: nmenoni on September 15, 2018, 08:08:01 PM

Title: Why is analogRead() not greater than 1023? [SOLVED]
Post by: nmenoni on September 15, 2018, 08:08:01 PM
Hi, I'm new with the Moteino M0.
My question is this, when I read an analog pin with "analogRead()" the values go from 0 to 1023, but it is assumed that this MCU has a 12bits ADC, so the values should be in the range of 0 and 4095.

What I can be doing wrong?
Thanks!
Title: Re: Why is analogRead() not greater than 1023?
Post by: TomWS on September 16, 2018, 03:05:23 PM
DAGS1: arduino m0 analogread


Note 1: Do A Google Search
Title: Re: Why is analogRead() not greater than 1023?
Post by: Felix on September 17, 2018, 09:21:41 AM
analogReadResolution(12);