Hi
I m trying to read the state of the internal switch. The tutorial (https://learn.adafruit.com/adafruit-its ... ss/pinouts) says it should be on pin 4 (and the blue led on pin 3) but digitalRead(4) does not seem to read the correct status!
Any Idea Why?
Many thanks in advance
oliver
ItsyBitsy nRF52840 internal switch
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: ItsyBitsy nRF52840 internal switch
Have you set the pin to input with a pullup?
And do you have the correct board selected?
Dave
And do you have the correct board selected?
Dave
- olivier1870
- Posts: 19
- Joined: Mon Dec 18, 2017 5:12 am
Re: ItsyBitsy nRF52840 internal switch
Many thanks for the reply.
I forgot to set it as pullUp... all ok now :-)
I forgot to set it as pullUp... all ok now :-)
Please be positive and constructive with your questions and comments.