Hi all..
I'm using some pins as jumpers. I pull them high when I want the hardware to signal to the code that something is turned on.
In hardware I have a 3.3v rail.. and bunch of jumpers so I can connect them to certain pins.
everytime I want to check it in my code I do this...
if (apin.read()!=0) {
..do something..
}
My Q: Will that read take time ( a lot?) compared to reading them all and defining them at the beginning of the program ? They are solder bridges, they won't be changing.
I'm wondering if it's bad practise to keep reading them.
Hi all..
I'm using some pins as jumpers. I pull them high when I want the hardware to signal to the code that something is turned on.
In hardware I have a 3.3v rail.. and bunch of jumpers so I can connect them to certain pins.
everytime I want to check it in my code I do this...
if (apin.read()!=0) { ..do something.. }
My Q: Will that read take time ( a lot?) compared to reading them all and defining them at the beginning of the program ? They are solder bridges, they won't be changing.
I'm wondering if it's bad practise to keep reading them.