This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

APP_BUTTON_INIT and GPIO_WAKEUP_BUTTON_CONFIG

I'm confused about the use of these two functions. I want my app to sleep immediately upon start and then wake up and do a BLE advertise when I press a button.

  1. I see that both of these functions are used in the ble_app_proximity example. Both functions take a pullup value which, in the example, is set to pull up in APP_BUTTON_INIT and to not pull up in GPIO_WAKEUP_BUTTON_CONFIG. What happens in this case?

  2. I notice in the header comments for APP_BUTTON_INIT that it does not "enable" the button. Does GPIO_WAKEUP_BUTTON_CONFIG do that?

I tried the following in my app but button_event_handler is not getting called when I press the button:

static app_button_cfg_t buttons[] =
    {
        {IO_PORT_INT_BUTTON, false, NRF_GPIO_PIN_PULLUP, button_event_handler}
    };
    APP_BUTTON_INIT(buttons, sizeof(buttons) / sizeof(buttons[0]), BUTTON_DETECTION_DELAY, false);
		GPIO_WAKEUP_BUTTON_CONFIG(IO_PORT_INT_BUTTON);

Any ideas what I might be doing wrong?

Parents
  • The post is written in a very good manner by you. Wow, amazing blog layout! How long have you been blogging? you make blogging look easy.  If you want to go through the Crypto Algo Trading Software so you will grow more knowledge. I think you, you should not be ignored.

  • Discover a fun and creative way to make a beautiful 3D Apple Paper Craft using simple paper and easy folding techniques! This adorable apple design is perfect for kids, beginners, and anyone who loves DIY paper crafts. Follow the step-by-step instructions to transform ordinary paper into a lovely three-dimensional apple decoration. Enjoy this relaxing and satisfying craft project, and add a touch of handmade creativity to your home or classroom! origami apple .Create a beautiful Tree Craft with Paper using simple materials and easy-to-follow steps! This fun and creative DIY paper craft is perfect for kids, students, and anyone who enjoys making handmade decorations. With colorful paper and a little imagination, you can turn ordinary sheets of paper into an adorable tree design. Enjoy this easy and relaxing craft activity, and bring a touch of nature-inspired creativity to your home or classroom! cherry blossom tree paper craft .Discover how to make a simple and beautiful Origami Water Drop using just a sheet of paper and a few easy folding techniques! This fun paper-folding project is perfect for beginners, kids, and anyone who loves creative DIY crafts. Follow the step-by-step instructions to transform an ordinary piece of paper into a cute water drop shape. Enjoy this relaxing origami activity and explore the wonderful world of paper folding! water drop paper craft .Lagu anak Sekolah Minggu dengan gerakan merupakan salah satu cara menyenangkan untuk memuji Tuhan sambil belajar mengenal kasih-Nya. Melalui lagu dan gerakan sederhana, anak-anak dapat mengekspresikan sukacita serta semakin aktif dalam mengikuti kegiatan Sekolah Minggu. Selain menghibur, kegiatan ini juga membantu anak-anak mengingat pesan firman Tuhan dengan lebih mudah. Mari bernyanyi, bergerak, dan memuji Tuhan bersama dengan penuh sukacita! yesus besertaku .Celebrate the true meaning of Christmas with this beautiful Religious Christmas Coloring Book filled with meaningful Christian illustrations! Each coloring page features special moments from the birth of Jesus, including the Nativity, angels, shepherds, and the Three Wise Men. This fun and educational activity is perfect for kids who want to express their creativity while learning about God's love and the story of Jesus' birth. Enjoy a joyful Christmas coloring experience and let every page remind you of the hope, peace, and light of Christ! Christian Christmas coloring book .

Reply
  • Discover a fun and creative way to make a beautiful 3D Apple Paper Craft using simple paper and easy folding techniques! This adorable apple design is perfect for kids, beginners, and anyone who loves DIY paper crafts. Follow the step-by-step instructions to transform ordinary paper into a lovely three-dimensional apple decoration. Enjoy this relaxing and satisfying craft project, and add a touch of handmade creativity to your home or classroom! origami apple .Create a beautiful Tree Craft with Paper using simple materials and easy-to-follow steps! This fun and creative DIY paper craft is perfect for kids, students, and anyone who enjoys making handmade decorations. With colorful paper and a little imagination, you can turn ordinary sheets of paper into an adorable tree design. Enjoy this easy and relaxing craft activity, and bring a touch of nature-inspired creativity to your home or classroom! cherry blossom tree paper craft .Discover how to make a simple and beautiful Origami Water Drop using just a sheet of paper and a few easy folding techniques! This fun paper-folding project is perfect for beginners, kids, and anyone who loves creative DIY crafts. Follow the step-by-step instructions to transform an ordinary piece of paper into a cute water drop shape. Enjoy this relaxing origami activity and explore the wonderful world of paper folding! water drop paper craft .Lagu anak Sekolah Minggu dengan gerakan merupakan salah satu cara menyenangkan untuk memuji Tuhan sambil belajar mengenal kasih-Nya. Melalui lagu dan gerakan sederhana, anak-anak dapat mengekspresikan sukacita serta semakin aktif dalam mengikuti kegiatan Sekolah Minggu. Selain menghibur, kegiatan ini juga membantu anak-anak mengingat pesan firman Tuhan dengan lebih mudah. Mari bernyanyi, bergerak, dan memuji Tuhan bersama dengan penuh sukacita! yesus besertaku .Celebrate the true meaning of Christmas with this beautiful Religious Christmas Coloring Book filled with meaningful Christian illustrations! Each coloring page features special moments from the birth of Jesus, including the Nativity, angels, shepherds, and the Three Wise Men. This fun and educational activity is perfect for kids who want to express their creativity while learning about God's love and the story of Jesus' birth. Enjoy a joyful Christmas coloring experience and let every page remind you of the hope, peace, and light of Christ! Christian Christmas coloring book .

Children
No Data
Related