- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using custom hardware and I perfectly run HID LE Remote example from CYBLE 303472 EVAL M2B BSP.
I also get input from keypad and send to the HID over BLE.
Now I want to disable keypad scanning in runtime for low power consumption and when I get GPIO interrupt that I want to enable keypad scanning.
I Try call below function in runtime (one by one and together)
wiced_hal_keyscan_turnOff();
kscan_shutdown();
But keypad scanning is still running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you reproduce it in the CYBLE 303472 EVAL M2B rather than custom hardware?
Thanks
Sven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I also test same thing by CYBLE 303472 EVAL M2B evalution kit and this is not working.
I Tried with GPIO pull up disable and enable in runtime.
After Disable pull by following line, my keypad is not send data om terminal, that means it was disable. and than enable it was working again.
Disable :wiced_hal_gpio_configure_pin(WICED_P00, GPIO_PULL_UP_DOWN_NONE, GPIO_PIN_OUTPUT_LOW);
Enable: wiced_hal_gpio_configure_pin(WICED_P00, GPIO_PULL_UP, GPIO_PIN_OUTPUT_HIGH);
But I don't know why below pre defined function is not working
wiced_hal_keyscan_turnOff();
kscan_shutdown();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to disable interrupts at the same time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sven,
Thanks for the reply. I tried above solution.
--------------For disable keypad -------------------------