1 parent
bc65391f50
commit
ebea46c98d
6 files changed
+19
-22
No files matched your search
@@ -109,7 +109,7 @@ bool SoftwareSerial::stopListening()
|
||||
|
||||
void SoftwareSerial::end()
|
||||
{
|
||||
stopListening();
|
||||
stopListening();
|
||||
}
|
||||
|
||||
int SoftwareSerial::read()
|
||||
@@ -326,4 +326,4 @@ void SoftwareSerial::setRX(uint8_t rx)
|
||||
_receiveBitMask = digitalPinToBitMask(rx);
|
||||
NRF_GPIO_Type * port = digitalPinToPort(rx);
|
||||
_receivePortRegister = portInputRegister(port);
|
||||
}
|
||||
}
|
||||
@@ -91,13 +91,4 @@ public:
|
||||
static inline void handle_interrupt() __attribute__((__always_inline__));
|
||||
};
|
||||
|
||||
// Arduino 0012 workaround
|
||||
#undef int
|
||||
#undef char
|
||||
#undef long
|
||||
#undef byte
|
||||
#undef float
|
||||
#undef abs
|
||||
#undef round
|
||||
|
||||
#endif
|
||||
@@ -5,8 +5,8 @@
|
||||
Receives from software serial, sends to hardware serial.
|
||||
|
||||
The circuit:
|
||||
* RX is digital pin 9 (connect to TX of other device)
|
||||
* TX is digital pin 10 (connect to RX of other device)
|
||||
* RX is digital pin A0 (connect to TX of other device)
|
||||
* TX is digital pin A1 (connect to RX of other device)
|
||||
|
||||
This example code is in the public domain.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <SoftwareSerial.h>
|
||||
|
||||
SoftwareSerial mySerial(9, 10); // RX, TX
|
||||
SoftwareSerial mySerial(A0, A1); // RX, TX
|
||||
|
||||
|
||||
void setup()
|
||||
|
||||
Reference in new issue
Block a user