int val3 = 0;
void setup() {
pinMode(13, OUTPUT);
pinMode(3,INPUT_PULLUP);
}
void loop() {
val3 = digitalRead(3);
Serial.println(val3);
}
32u4 pins not isolated?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88145
- Joined: Sat Feb 07, 2009 10:11 am
Re: 32u4 pins not isolated?
Code: Select all
val3 = digitalRead(3);
To read A3 as a digital input use:
Code: Select all
val3 = digitalRead(A3);
- jhf5167
- Posts: 9
- Joined: Fri Aug 12, 2022 12:26 am
Re: 32u4 pins not isolated?
OMG I'm an idiot, I just took it for granted that I already did that. Thanks so much.
Please be positive and constructive with your questions and comments.