14 lines
236 B
C++
14 lines
236 B
C++
#include <SoftwareSerial.h>
|
|
SoftwareSerial BT(10, 11);
|
|
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
BT.begin(38400);
|
|
}
|
|
|
|
void loop() {
|
|
if (Serial.available())
|
|
BT.write(Serial.read());
|
|
if (BT.available())
|
|
Serial.write(BT.read());
|
|
} |