But if the Arduino take a little time to reply it doesn´t matter. Both peripherals are transmiting simultaneously. No, I can´t control when the preripherals transmit. SoftwareSerialWithHalfDuplex puertoR(comPinR,comPinR,false,false) īut this code doesn't work like I like becouse only configurate pin 3 to use in half duplex mode. I need to configurate two pins so try with this code: #include This code confugurate pin 2 to use in half duplex mode. SoftwareSerialWithHalfDuplex puertoMon(comPinMon,comPinMon,false,false) public only for easy access by interrupt handlers SoftwareSerialWithHalfDuplex(uint8_t receivePin, uint8_t transmitPin, bool inverse_logic = false, bool full_duplex = true) īool isListening() Static inline void tunedDelay(uint16_t delay) Static SoftwareSerialWithHalfDuplex *active_object Static volatile uint8_t _receive_buffer_head ![]() Static volatile uint8_t _receive_buffer_tail #define GCC_VERSION (_GNUC_ * 10000 + _GNUC_MINOR_ * 100 + _GNUC_PATCHLEVEL_)Ĭlass SoftwareSerialWithHalfDuplex : public Stream #define _SS_MAX_RX_BUFF 64 // RX buffer size ![]() This is the libray that I found: #ifndef SoftwareSerialWithHalfDuplex_h
0 Comments
Leave a Reply. |