Can more than one GPIO PIN be assigned to GPIO_BUTTON?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaMe_1509466
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

Can more than one GPIO PIN be assigned to GPIO_BUTTON in the

BLE_PROFILE_GPIO_CFG table?


Can the button interface be expanded to support BUTTON4 through BUTTON7?



0 Likes
1 Solution
Anonymous
Not applicable

Hello Mark,

In addition, we cannot support GPIO Buttons 4-7.

Thanks

JT

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Hello Mark,

I think this is explained in the i2c_temperature_sensor example

Thanks

JT

0 Likes

Sorry JT. I am not seeing it. Can you explain further? Thanks

0 Likes
Anonymous
Not applicable

Mark,

Can you check:

#define GPIO_PIN_BUTTON 0

#define GPIO_SETTINGS_BUTTON (GPIO_INPUT | GPIO_INIT_LOW | GPIO_BUTTON | GPIO_INT)

 

#define GPIO_PIN_WP 1

#define GPIO_SETTINGS_WP (GPIO_OUTPUT | GPIO_INIT_LOW | GPIO_WP)

 

#define GPIO_PIN_LED 14

#define GPIO_SETTINGS_LED (GPIO_OUTPUT | GPIO_INIT_HIGH | GPIO_LED)

 

#define GPIO_PIN_BATTERY 15

#define GPIO_SETTINGS_BATTERY (GPIO_INPUT | GPIO_INIT_LOW | GPIO_BAT)

 

#define GPIO_PIN_BUZZER 28

#define GPIO_SETTINGS_BUZZER (GPIO_OUTPUT | GPIO_INIT_LOW | GPIO_BUZ)

 

#define GPIO_PIN_BUTTON 14

#define GPIO_SETTINGS_BUTTON (GPIO_INPUT | GPIO_INIT_LOW | GPIO_BUTTON | GPIO_INT)

 

#define GPIO_PIN_WP 31

#define GPIO_SETTINGS_WP (GPIO_OUTPUT | GPIO_INIT_LOW | GPIO_WP)

 

#define GPIO_PIN_LED 14

#define GPIO_SETTINGS_LED (GPIO_OUTPUT | GPIO_INIT_HIGH | GPIO_LED)

 

#define GPIO_PIN_BATTERY 15

#define GPIO_SETTINGS_BATTERY (GPIO_INPUT | GPIO_INIT_LOW | GPIO_BAT)

 

#define GPIO_PIN_BUZZER 28

#define GPIO_SETTINGS_BUZZER (GPIO_OUTPUT | GPIO_INIT_LOW | GPIO_BUZ)

 

In addition, we cannot support GPIO Buttons 4-7

Thanks

0 Likes
Anonymous
Not applicable

Hello Mark,

In addition, we cannot support GPIO Buttons 4-7.

Thanks

JT

0 Likes