Professional Documents
Culture Documents
h>
#include <Servo.h>
Servo myservo;
int bluetoothTx = 2;
int bluetoothRx = 3;
void setup()
myservo.attach(5);
bluetooth.begin(9600);
void loop()
if(bluetooth.available()> 0 )
{
int servopos = bluetooth.read();
myservo.write(servopos);
}