1 Reply Latest reply on Nov 6, 2019 1:06 AM by AnjanaM_61

    bleprofile_LED functions, how to change the o/p pin polarity?



      I am working with the find_me application provided in the users guide project ("Getting Started with EZ-BLE WICED Modules", https://www.cypress.com/file/396961/download).


      How can we change the bleprofile_LEDOff() and bleprofile_LEDOn functions polarity (0 => OFF, 1 => ON) ?


      I changed the following in profile.h


      #define GPIO_SETTINGS_LED  



      and in find_me.c


      gpio_configurePinWithSingleBytePortPinNum(GPIO_PIN_LED, GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_LOW);


      but I guess it only changes the initialization value.


      Another problem is the LED is not turning on or blinking even though the On/Off functions are called (use ble_trace functions to confirm this). I used "clean" make target after changing the platform header files.