diff options
| author | nucho <javatea@it.willcomlive.jp> | 2012-05-13 17:49:43 +0900 |
|---|---|---|
| committer | nucho <javatea@it.willcomlive.jp> | 2012-05-13 18:07:13 +0900 |
| commit | 4784789474114697f07be33f5fe31dc32178ad12 (patch) | |
| tree | 15136d9428e8bc926071fda691031594277dc8c7 /src/core | |
| parent | abe4b2f170f037eb2278b93392275914b2e64918 (diff) | |
added inverse logic mode
Diffstat (limited to 'src/core')
| -rwxr-xr-x | src/core/SoftwareSerial.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SoftwareSerial.cpp b/src/core/SoftwareSerial.cpp index a49dc4b..e69c459 100755 --- a/src/core/SoftwareSerial.cpp +++ b/src/core/SoftwareSerial.cpp @@ -186,10 +186,11 @@ void SoftwareSerial::setTX(uint8_t tx) { void SoftwareSerial::setRX(uint8_t rx) { if (rx >= 0) { + pinMode(rx, INPUT); if (!_inverse_logic) { - //TODO:pin pullup + digitalWrite(rx, HIGH);//rx pin is pull up } else { - //TODO:pin pulldown + digitalWrite(rx, LOW);//rx pin is inactive } } _receivePin = rx; |
