nrf52840 itsybitsy - D4 pin error

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
willwade
 
Posts: 50
Joined: Sat Dec 01, 2018 3:04 pm

nrf52840 itsybitsy - D4 pin error

Post by willwade »

Im trying to assign the D4 (User SW) pin - as per the pinout guide - but my Arduino setup is saying I cant..

Code: Select all

D4' was not declared in this scope; did you mean 'A4'?
Is the pinout guide wrong?! Or is there another way of referencing it?

https://learn.adafruit.com/adafruit-its ... ss/pinouts

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

Re: nrf52840 itsybitsy - D4 pin error

Post by dastels »

Can you post your code: the imports and the line that is referencing D4 will likely be enough.

Dave

User avatar
willwade
 
Posts: 50
Joined: Sat Dec 01, 2018 3:04 pm

Re: nrf52840 itsybitsy - D4 pin error

Post by willwade »

Sure!

https://github.com/AceCentre/morAce/blo ... nMap.h#L23

See entire code at

https://github.com/AceCentre/morAce/tre ... ady/morAce

NB: If you have a itsybitsy - this should work as is.

User avatar
willwade
 
Posts: 50
Joined: Sat Dec 01, 2018 3:04 pm

Re: nrf52840 itsybitsy - D4 pin error

Post by willwade »

Just uploading an image of the error..
Attachments
Screenshot 2021-08-20 at 21.47.22.png
Screenshot 2021-08-20 at 21.47.22.png (207.62 KiB) Viewed 102 times

User avatar
willwade
 
Posts: 50
Joined: Sat Dec 01, 2018 3:04 pm

Re: nrf52840 itsybitsy - D4 pin error

Post by willwade »

Any help appreciated! :)

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

Return to “Itsy Bitsy Boards”