2 Replies Latest reply on Mar 12, 2019 7:36 AM by tim.koczwara_2703136

    LED blinking on CYBLE-013025 (Chip 20737)

    tim.koczwara_2703136

      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