Author Topic: analogRead on GPIO0  (Read 1416 times)

daveshorts

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
analogRead on GPIO0
« on: June 17, 2015, 10:40:23 AM »
I have been trying to use GPIO0 as an analog input, is this possible? When I try when not connected to the programmer it is always reading zero, although the voltage on it is 1.5V.

Is there some issue with it being the AREF PIN? Or am I being daft?

   thanks

lichtheini

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: analogRead on GPIO0
« Reply #1 on: April 28, 2017, 11:16:33 AM »
Hey Dave,

the GPIO0 is not avaliable for AnalogRead.
From the source on Github:

Code: [Select]
if ((ulPin > 0) && (ulPin < PINS_COUNT)) // Only pins 1-6 is avaliable for using as ADC inputsOn Pin 0 it returns always zero.

greeting,
lichtheini



 

anything