diff options
-rw-r--r-- | wirish/comm/HardwareSerial.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wirish/comm/HardwareSerial.h b/wirish/comm/HardwareSerial.h index a347051..c76ea17 100644 --- a/wirish/comm/HardwareSerial.h +++ b/wirish/comm/HardwareSerial.h @@ -67,6 +67,10 @@ public: void flush(void); virtual void write(unsigned char); using Print::write; + + /* Pin accessors */ + int txPin(void) { return this->tx_pin; } + int rxPin(void) { return this->rx_pin; } private: usart_dev *usart_device; uint8 tx_pin; |