Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

ItsyBitsy nRF52840 internal switch
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ItsyBitsy nRF52840 internal switch

by olivier1870 on Mon Jun 22, 2020 4:40 am

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

olivier1870
 
Posts: 4
Joined: Mon Dec 18, 2017 5:12 am

Re: ItsyBitsy nRF52840 internal switch

by dastels on Mon Jun 22, 2020 11:06 am

Have you set the pin to input with a pullup?

And do you have the correct board selected?

Dave

dastels
 
Posts: 3549
Joined: Tue Oct 20, 2015 3:22 pm

Re: ItsyBitsy nRF52840 internal switch

by olivier1870 on Tue Jun 23, 2020 9:53 am

Many thanks for the reply.
I forgot to set it as pullUp... all ok now :-)

olivier1870
 
Posts: 4
Joined: Mon Dec 18, 2017 5:12 am

Please be positive and constructive with your questions and comments.