DigitalInOut LED_Blue(PA_1);
/* Set LED pins for open Drain Output */
LED_Blue.output();
LED_Blue.mode(OpenDrain);
LED_Blue.mode(PullNone);
if(LED_Blue.is_connected()) {
DEBUG(“- Blue LED Connected -\n\r”);
}
Thanks a lot, you comment are more than welcome!
I used DigitalInOut LED_Green(PA_8, PIN_OUTPUT, OpenDrainNoPull, 1);
/* Set LED pins for open Drain Output */
LED_Blue.output();
LED_Blue.mode(OpenDrainNoPull);
if(LED_Blue.is_connected()) {
DEBUG(“- Blue LED Connected -\n\r”);
}
I was also using pin (AnalogIn) which does not support 5 Volst (FF) but 3.3V Only (TT).
I have move my signals form
PA_0/PA_1/PA_3 to PA_8/PA_11/PA_12 which are 5V Tolerant (FF).
And it works fine.