- Posts: 53
Menu buttons dont work properly with latest builds
- mj666
- Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- mj666
- Topic Author
- Offline
- Posts: 53
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- mj666
- Topic Author
- Offline
- Posts: 53
Fernandez wrote: sounds like RFI pick up or antenna issues, which can cause weird effects?
Please Log in or Create an account to join the conversation.
- mj666
- Topic Author
- Offline
- Posts: 53
vlad_vy wrote: It's not single case. Looks like devo10 build only has a problems.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Old:
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO4 | GPIO5 | GPIO8 | GPIO9);
New:
GPIO_setup_output(BUTTON_MATRIX_ROW_OD, OTYPE_OPENDRAIN);
Probably it's worth to test
GPIO_setup_output(BUTTON_MATRIX_ROW_OD, OTYPE_PUSHPULL);
Please Log in or Create an account to join the conversation.
- mj666
- Topic Author
- Offline
- Posts: 53
vlad_vy wrote: I see that "devo10" (and devo6, devo8, devo12, devo12e) old button matrix Initialize_ButtonMatrix() code use PUSHPULL output for button lines, but new code (button_matrix.c) use OPENDRAIN output for button lines (for all transmitters). For example, T8SG V2 have pull up resistors 4.7 kOhm on these lines, so it work normally.
Old:
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO4 | GPIO5 | GPIO8 | GPIO9);
New:
GPIO_setup_output(BUTTON_MATRIX_ROW_OD, OTYPE_OPENDRAIN);
Probably it's worth to test
GPIO_setup_output(BUTTON_MATRIX_ROW_OD, OTYPE_PUSHPULL);
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- mj666
- Topic Author
- Offline
- Posts: 53
vlad_vy wrote: Fixed.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Menu buttons dont work properly with latest builds