ROBOTIS e-Manual v1.13.01
| Zigbee SDK |
It initializes the communication devices and makes ready status.
| int zgb_tx_data( int data , ); |
- data
The data values to be transmitted
If it has the effects of controlling with RC-100, the button value declared in advance can be used.
|
Value |
Name |
Contents |
|
1 |
RC100_BTN_U |
Pressed value- U Button |
|
2 |
RC100_BTN_D |
Pressed value- D Button |
|
4 |
RC100_BTN_L |
Pressed value- L Button |
|
8 |
RC100_BTN_R |
Pressed value- R Button |
|
16 |
RC100_BTN_1 |
Pressed value- Button 1 |
|
32 |
RC100_BTN_2 |
Pressed value- Button 2 |
|
64 |
RC100_BTN_3 |
Pressed value- Button 3 |
|
128 |
RC100_BTN_4 |
Pressed value- Button 4 |
|
256 |
RC100_BTN_5 |
Pressed value- Button 5 |
|
512 |
RC100_BTN_6 |
Pressed value- Button 6 |
- If the value is 1, it means success; if the value is 0, it means failure.
| int TxData; int result TxData = 1; result = zgb_tx_data(TxData); if( result == 0) { // Failed to transmit } else if( result ==1) { // Succeed to transmit } |