- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
maybe someone has a hint for me. I try to get the LED to blink on my CYBLE-013025-EVAL.
I downloaded the Wice Smart SDK 2.2.3 and the Platform files for CYBLE_013025_EVAL.
I got my module running with Advertising, but I cannot get the LED to blink.
What I did:
Created the GPIO Config
const BLE_PROFILE_GPIO_CFG myapp_gpio_cfg =
{
/*.gpio_pin =*/
{
GPIO_PIN_LED, // LED GPIO, optional to provide visual effects
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 // other GPIOs are not used
},
/*.gpio_flag =*/
{
GPIO_SETTINGS_LED,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}
};
Called the bleapp_set_cfg with my gpio function (myapp_cfg was also set to NULL to see if the led_enable flag makes a difference -> It didn't).
bleapp_set_cfg(NULL, 0, (void*)&myapp_cfg, NULL, (void*)&myapp_gpio_cfg, myapp_create);
I called gpio_configurePin(GPIO_PIN_LED / 16, GPIO_PIN_LED % 16, GPIO_OUTPUT_ENABLE, 1); in myapp_create.
I tried bleprofile_LEDOn(); -> LED is off
I tried bleprofile_LEDBlink(250, 250, 100); -> LED is off
Has someone an idea what I can do to get the LED blinking? The PDF I found only mentioned configuring the gpio pin and calling the LED functions.
Best regards,
Tim
Solved! Go to Solution.
- Tags:
- 20737
- cyble-013025
- led
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please use the GPIO function to control the LED.
The eval board uses P14 for LED.
1. Don't set up P14 in your BLE_PROFILE_GPIO_CFG structure.
2. Drive P14 low when you want to turn it on.
void application_create(void)
{
// all other application initialization
// Drive P14 low. If the LED is hooked up right, it will turn on
gpio_configurePin(14/16, 14%16, GPIO_OUTPUT_ENABLE, 0);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please use the GPIO function to control the LED.
The eval board uses P14 for LED.
1. Don't set up P14 in your BLE_PROFILE_GPIO_CFG structure.
2. Drive P14 low when you want to turn it on.
void application_create(void)
{
// all other application initialization
// Drive P14 low. If the LED is hooked up right, it will turn on
gpio_configurePin(14/16, 14%16, GPIO_OUTPUT_ENABLE, 0);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the help! This worked for me.