Skip to content

Add USER_BTN mapping to PA0 for BlackPill F401CC/F401CE boards #1144

Closed
@pawelsky

Description

@pawelsky

Since v1.2 BlackPill F401CC/F401CE boards have an user button (named "KEY") connected to PA0 added to the board. You can find more details about this board here

Please add the USER_BTN define mapping to PA0 for BlackPill F401CC and the proposed F401CE boards. That would be consistent with the already existing BlackPill F411CE USER_BTN mapping

I believe the following change in the Generic_F401Cx/variant.h file should do the job:

// On-board user button
#if defined(ARDUINO_BLACKPILL_F401CC) || defined(ARDUINO_BLACKPILL_F401CE)
#define USER_BTN PA0
#elif !defined(USER_BTN) && !defined(ARDUINO_GENERIC_F401CC)
#define USER_BTN PC13
#endif

Metadata

Metadata

Assignees

Labels

duplicateThis issue or pull request already exists

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions