프로그래밍/Python (1) 썸네일형 리스트형 [프로그래밍/Python] 아두이노 HC-06 와 라즈베리파이 블루투스 RFCOMM 통신 참고 https://webnautes.tistory.com/979 bluetooth.ino 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include SoftwareSerial BTSerial(2, 3); //bluetooth module Tx:Digital 2 Rx:Digital 3 void setup() { pinMode(8, OUTPUT); //HC-05 digitalWrite(8,HIGH); Serial.begin(9600); BTSerial.begin(9600); Serial.println("ATcommand"); //ATcommand Start } void loop() { if (BTSerial.available()) Serial.write(BTSer.. 이전 1 다음