Datasheet

11
For more information on using Bluetooth Bee, consult the Bluetooth Bee Commands
documentation.
Programming
/*
Test code for use with an XBee Carrier & an RF Bee
Turns on PD5 (eg: grove relay) on for one second, then off for one second, repeatedly.
*/
void setup()
{
// initialize the digital pin as an output [Pin 5 is the Grove connector for I/O
pinMode(5, OUTPUT);
// These lines are needed to ensure that the relay will pull in [provides power to the Grove]
pinMode(16, OUTPUT);
digitalWrite(16, LOW);
}
void loop() {
digitalWrite(5, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(5, LOW); // set the LED off
delay(1000); // wait for a second
}