forked from espressif/arduino-esp32
Added argument to HardwareSerial.begin to specify whether the logic levels of the UART rx and tx lines should be inverted (#719)
This commit is contained in:
committed by
Me No Dev
parent
cabc4c5bb5
commit
e6a5b68e40
@ -37,7 +37,7 @@ class HardwareSerial: public Stream
|
||||
public:
|
||||
HardwareSerial(int uart_nr);
|
||||
|
||||
void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1);
|
||||
void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false);
|
||||
void end();
|
||||
int available(void);
|
||||
int peek(void);
|
||||
|
Reference in New Issue
Block a user