Explain: Difference between set.io.configure and set.dio.value?

When dealing with manipulating pins often in a program I was told that “I shouldn’t use the configuration method frequently… only to configure an IO port initially. I should use a set method to change the IO port often.” Presently I have a long code where I set.io.configure ON/ OFF over and over for all the pins on my controller. Apparently I should be using set.io.value for manipulating IO pins often in a script.

So my question is: what is the difference between .configure and .value at a hardware/software level? Why is one more dangerous than the other to use frequently?..


:slight_smile: plz and ty

1 Like