Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
Created November 26, 2015 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neosarchizo/3f0b3bce65853f81339f to your computer and use it in GitHub Desktop.
Save neosarchizo/3f0b3bce65853f81339f to your computer and use it in GitHub Desktop.
[앱 인벤터] 아두이노로 블루투스 사용하기
#include <SoftwareSerial.h>
SoftwareSerial btSerial(2, 3);
void setup() {
Serial.begin(9600);
btSerial.begin(9600);
}
void loop() {
if(Serial.available())
btSerial.write(Serial.read());
if(btSerial.available())
Serial.write(btSerial.read());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment