Accessing Digital Pin 26 on ATMEGA328PB

I'm running a custom PCB using the ATMEGA328PB chip and using the MINICORE bootloader. For some reason I can't access DP26 which should be attached to physical pin 22 according to this diagram.

Any ideas what I'm missing? For reference, I can use pins 2-25.

https://camo.githubusercontent.com/e9e86ccbdbf3d99f36baf4cfc4deb3f632a793f61431f1241ad324d9029faff8/68747470733a2f2f692e696d6775722e636f6d2f5a51736a4c774c2e6a7067

Is digital Pin 26 defined in the Arduino core, for your board definition?

I'm new to all of that but I would assume that would be handled in the MINI CORE board info?

Aren't A6 and A7 analog input only on the mega328 chips?

Edit: A6 & A7 fully functional on the 328PB chip.

Review your assumption by checking the board definition and the pin definition file.

Edited my post.

This is where to find the standard arduino's pin definition file:
image
If you use a different board, your board will be under variants folder and your board's name. It's not for beginners. If you wish to edit, at the very least make a back up. Post your updated file if you want some help from here.

Okay after a fresh reboot, things are working. I didn't change anything other than rebooting. Must have been a board definition that got updated or something. Either way it's working now!

Thanks all for the help!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.