Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15346

Nano RP2040 A6 and A7 reading 0

$
0
0

Hi there,

I've got a few nano RP2040 boards. I am struggling to get any of them to analogRead on A6 or A7. Here's the sample code:

#include "WiFiNINA.h"

void setup() {
  pinMode(A7, INPUT);
  Serial.begin(115200);
}

void loop() {
    Serial.print("X: ");
    Serial.print(analogRead(A0));
    Serial.print("\tY: ");
    Serial.println(analogRead(A7));
}

For me A0 reads fine, but A7 only outputs 0 to serial.

Any thoughts? I need to use A6/A7 for my application. A0-A3 are already used.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 15346

Trending Articles