| 전자부품 데이터시트 검색엔진 |
|
DFR0221 데이터시트(PDF) 3 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0221 데이터시트(HTML) 3 Page - DFROBOT |
|
3 / 5 page ![]() Xbee Tutorial DFRobot Leonardo with Xbee R3 has a Xbee socket.It uses Serial1 to communicate with Leonardo. Sample Code // # Description: // It is just used to test Leonardo module // Write by Grey // Input "p" once time the led will be turn on;twice to turn off. // It is controled by Serial1 Xbee side only. but you can check the status fr om serial port. int ledPin=13; int val; int count=0; void setup() { pinMode(ledPin,OUTPUT); Serial.begin(9600); Serial1.begin(115200); // Xbee Serial1 port baud rate should be set the sa me to the xbee baud rate } void loop() { val=Serial1.read(); // read xbee Serial1 data if(-1!=val) // "-1" means no data { if('p'==val){ if(count==0)count=1; else if(count==1)count=0; } if(count==0){ |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |