Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Assignees
ABOSTM
Labels
duplicateThis issue or pull request already exists
Milestone
@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 boardhere

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

I believe the following change in theGeneric_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


    [8]ページ先頭

    ©2009-2025 Movatter.jp