Go Down

Topic: TX on uno board (Read 433 times) previous topic - next topic

truck56

Can the Tx (pin 1) on a uno board be used as a digitalwrite output pin?
Thanks

retrolefty


Can the Tx (pin 1) on a uno board be used as a digitalwrite output pin?
Thanks


Yes it can be, if you are not using serial comm in your sketch.

CrossRoads

I think you can do this too:

Code: [Select]

// in void loop ...

Serial.end();
pinMode (D1, OUTPUT);
// whatever you're doing
:
:
// then turn serial back on
Serial.begin(9600);
:


If you are using Serial, the receiver may be a little confused about what be coming out.
Maybe send a coordination message indicating "stop lstening for 500ms while I send junky serial data out!"
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


Go Up