Internal PULLDOWN

Hello everybody

I try to read analog value with the sparkcore but I can not get the zero value when nothing it’s connected.

My code is very simple :

include "application.h"
int value;

void setup()
{
  pinMode(A0, INPUT_PULLDOWN);
  Serial.begin(9600);
}
void loop()
{
  value=analogRead(A0);
  Serial.println(String(value));
  delay(1000);
}

someone there an idea why it does not work ?

Thank you in advance

Please do not cross-post in other threads and open a new one.

1 Like

@Sherkann, I agree with @kennethlimcp. Please see my response on the other thread:

This topic was automatically closed 113 minutes after the last reply. New replies are no longer allowed.