7 Replies Latest reply on Jan 15, 2017 8:16 PM by sib_at_1570356

    Changing port pin assignment to internal peripheral at runtime

    sib_at_1570356

      Hi,

         

      In my application, I want to use bicolor LED. Usually the Blue color is used for BLE state determination.

         

      Can I change the port assigned to line output of the PWM mode in timer module i.e. if battery is below 30%, use red for BLE state notification and if battery is above 30%, use blue led for BLE state notification?

         

      If answer is Yes, please explain the way to do it in main code.

         

       

         

      ***EDIT: since PWM has 2 outputs, line and line_n. I can use one output for one color and another for another color. So for this i have second question, can i disable one output and enable one i.e. if line is enabled, line_n is disabled and vice versa?

         

      Thanks

         

      Ashutosh