XBee¸¦ µÎ°³ ³¢¿ï ¼ö ÀÖ´Â ¼ÒÄÏÀÌ ÀåÂøµÇ¾î ÀÖ´Â ½¯µåÀÔ´Ï´Ù.
/*
# This sample code is used to test the Bees shield.
# Editor : Mickey
# Ver : 1.0
# Product: Bees shield
# SKU : DFR0210
# The circuit:
software RX is digital pin 2 (connect to TX of Bee2 device)
software TX is digital pin 3 (connect to RX of Bee2 device)
*/
#include
SoftwareSerial mySerial(2, 3);
// UNO RX -- Bee TX, UNO TX -- Bee RX
void
setup()
{
Serial.begin(115200);
mySerial.begin(115200);
delay(50);
}
loop()
Serial.println(
"this is Bee1 hardware!"
);
mySerial.println(
"this is Bee2 software!"
delay(500);
ÀÀ¿ë ¿¹Á¦ (Application Examples) :
¸ÞÄ«¼Ö·ç¼Ç Ä¿¹Â´ÏƼ Mechasolution Wiki, Mechasolution Blog ´Â ¿©·¯°¡Áö Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.