Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HardwareSerial Uart = HardwareSerial();
- void setup() {
- Serial.begin(9600);
- Uart.begin(9600);
- }
- void loop() {
- int incomingByte;
- if (Serial.available() > 0) {
- incomingByte = Serial.read();
- Uart.write(incomingByte);
- }
- if (Uart.available() > 0) {
- incomingByte = Uart.read();
- Serial.write(incomingByte);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement