Hi Everyone,
I realize I could get laughed off the forum for asking this, but...
Is it okay to be using one of the digital I/O pins for both reading and writing, thousands of times per second, day after day?
I assume 'yes', I'm just wondering if there are known limitations to these specific devices.
Example: (not my actual code.. I'm just getting the point across)
loop()
{
pinMode(0,INPUT);
digitalRead(0);
pinMode(0,OUTPUT);
digitalWrite(0,someValue);
}
Thanks,
Dozy
I realize I could get laughed off the forum for asking this, but...
Is it okay to be using one of the digital I/O pins for both reading and writing, thousands of times per second, day after day?
I assume 'yes', I'm just wondering if there are known limitations to these specific devices.
Example: (not my actual code.. I'm just getting the point across)
loop()
{
pinMode(0,INPUT);
digitalRead(0);
pinMode(0,OUTPUT);
digitalWrite(0,someValue);
}
Thanks,
Dozy