Can I change pins type in run-time?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
chwa_1570756
Level 4
Level 4
25 sign-ins 25 replies posted 10 replies posted

Hi,

   

I find API to set pins mode in run-time,but if sometime I want to change pins type such as from input to output in run-time,is it possible?

   

Chris

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You cold use a pin configured for input and output. If required with an additional output enable. When using the pin as input set the output to high-z.

   

 

   

Bob

0 Likes

Hi Bob,

   

Thanks for your quickly response.

   

What if I need to change pin type among Analog,Digital input and Digital Output? will it go wrong in hardware if I configure all?

   

Chris

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Do it, it works!

   

 

   

Bob

0 Likes