arduino / arduino/ArduinoCore-avr

In Arduino micro/leonardo Pin HWB is not exposed as digital pin

Open
#273 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
1.5k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

In the [Atmega32u4 Pin Mapping](https://www.arduino.cc/en/Hacking/PinMapping32u4) PE2 is documented as HWB so the expected behavior would be the user to be able to use it as a digital pin.
In the official boards (leonardo & micro) is tied to ground but is totally usable if you are using it with a atmega32u4 board.
The pull down on this pin is not required as the default fuses do not have the HWBE bit set, meaning that is completely ignored during bootup.
So make sense to Included in the pins_arduino.h a mapping for as arduino digital pin 31 and Alias name HWB.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in pins_arduino.h and compare the ATmega32u4 pin mapping with the Arduino documentation for PE2/HWB. Done means PE2 is exposed as digital pin 31 with the HWB alias for compatible boards, while existing Leonardo and Micro mappings remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.