ItsyBitsy nRF52840 internal switch

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
olivier1870
 
Posts: 19
Joined: Mon Dec 18, 2017 5:12 am

ItsyBitsy nRF52840 internal switch

Post by olivier1870 »

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

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: ItsyBitsy nRF52840 internal switch

Post by dastels »

Have you set the pin to input with a pullup?

And do you have the correct board selected?

Dave

User avatar
olivier1870
 
Posts: 19
Joined: Mon Dec 18, 2017 5:12 am

Re: ItsyBitsy nRF52840 internal switch

Post by olivier1870 »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”