Skip to content

BLACK_F407VE button mappings incorrect? #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BennehBoy opened this issue Dec 11, 2018 · 5 comments
Closed

BLACK_F407VE button mappings incorrect? #387

BennehBoy opened this issue Dec 11, 2018 · 5 comments
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@BennehBoy
Copy link
Contributor

BennehBoy commented Dec 11, 2018

Hi,

I'm having trouble using the buttons on a BLACK_F407VE.

The variant file suggests the following:

// On-board user button
#define BTN_K_UP                PA0
#define BTN_K0                  PE4
#define BTN_K1                  PE5
#define USER_BTN                BTN_K0

However, K1 appears to trigger via PE3, and K_UP does not trigger on PA0 (haven't isolated this yet).

Is it possible that this is being overridden elsewhere, or is it just plain wrong in the variant file?

Can anyone else confirm this?

@fpistm
Copy link
Member

fpistm commented Dec 11, 2018

It seems you're right:
http://wiki.stm32duino.com/images/5/5c/STM32_F4VE_SCHEMATIC.PDF
image

This should be:

#define BTN_K1                  PE3

@fpistm fpistm added the bug 🐛 Something isn't working label Dec 11, 2018
@fpistm fpistm added this to the 1.5.0 milestone Dec 11, 2018
@BennehBoy
Copy link
Contributor Author

Thanks. And BTN_K_UP? Is there some other setup I may be missing for that one?

@fpistm
Copy link
Member

fpistm commented Dec 11, 2018

K_UP is on PA0 but when it press it is pull up to 3.3V. So it is active HIGH. Configure it as INPUT_PULLDOWN.

@BennehBoy
Copy link
Contributor Author

Thought it may be something like that, thanks.

@fpistm
Copy link
Member

fpistm commented Dec 12, 2018

For information:
image
INPUT_PULLDOWN is already present, my mistake

@fpistm fpistm closed this as completed in fa0dcc8 Dec 12, 2018
@fpistm fpistm self-assigned this Dec 12, 2018
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this issue Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants