안녕하세요! 자세한 문의 드립니다
217753651@n
2024-06-27
rosmaster x3 plus
나-이광희
2024-06-26
댓글목록
작성자 아두이노짱
작성일 2021-05-14
평점
----------------------------------
#include SoftwareSerial.h //헤더에 꺾쇠 가로 닫기 해주세요
#define BT_RXD A2
#define BT_TXD A3
SoftwareSerial bluetooth(BT_RXD, BT_TXD);
void setup() {
Serial.begin(9600);
bluetooth.begin(9600);
}
void loop() {
if (bluetooth.available()) {
Serial.write(bluetooth.read());
}
if (Serial.available()) {
bluetooth.write(Serial.read());
}
}