Skip to content

Commit e7190ea

Browse files
Use fixed 16 bit integers for compatibility between boards
1 parent 820a6f1 commit e7190ea

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

EasyTransfer/Examples/EasyTransfer_2Way_wPot_Example/EasyTransfer_2Way_wPot_Example.pde renamed to EasyTransfer/examples/EasyTransfer_2Way_wPot_Example/EasyTransfer_2Way_wPot_Example.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ EasyTransfer ETin, ETout;
2424
struct RECEIVE_DATA_STRUCTURE{
2525
//put your variable definitions here for the data you want to receive
2626
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
27-
int buttonstate;
27+
int16_t buttonstate;
2828
};
2929

3030
struct SEND_DATA_STRUCTURE{
3131
//put your variable definitions here for the data you want to receive
3232
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
33-
int buttonstate;
34-
int servoval;
33+
int16_t buttonstate;
34+
int16_t servoval;
3535
};
3636

3737
//give a name to the group of data

EasyTransfer/Examples/EasyTransfer_2Way_wServo_Example/EasyTransfer_2Way_wServo_Example.pde renamed to EasyTransfer/examples/EasyTransfer_2Way_wServo_Example/EasyTransfer_2Way_wServo_Example.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Servo myservo;
2424
struct RECEIVE_DATA_STRUCTURE{
2525
//put your variable definitions here for the data you want to receive
2626
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
27-
int buttonstate;
28-
int servoval;
27+
int16_t buttonstate;
28+
int16_t servoval;
2929
};
3030

3131
struct SEND_DATA_STRUCTURE{
3232
//put your variable definitions here for the data you want to receive
3333
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
34-
int buttonstate;
34+
int16_t buttonstate;
3535
};
3636

3737

EasyTransfer/Examples/EasyTransfer_RX_Example/EasyTransfer_RX_Example.pde renamed to EasyTransfer/examples/EasyTransfer_RX_Example/EasyTransfer_RX_Example.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ EasyTransfer ET;
66
struct RECEIVE_DATA_STRUCTURE{
77
//put your variable definitions here for the data you want to receive
88
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
9-
int blinks;
10-
int pause;
9+
int16_t blinks;
10+
int16_t pause;
1111
};
1212

1313
//give a name to the group of data

EasyTransfer/Examples/EasyTransfer_TX_Example/EasyTransfer_TX_Example.pde renamed to EasyTransfer/examples/EasyTransfer_TX_Example/EasyTransfer_TX_Example.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ EasyTransfer ET;
66
struct SEND_DATA_STRUCTURE{
77
//put your variable definitions here for the data you want to send
88
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
9-
int blinks;
10-
int pause;
9+
int16_t blinks;
10+
int16_t pause;
1111
};
1212

1313
//give a name to the group of data

EasyTransferI2C/Examples/EasyTransfer_RX_Example/EasyTransfer_RX_Example.pde renamed to EasyTransferI2C/examples/EasyTransfer_RX_Example/EasyTransfer_RX_Example.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ EasyTransferI2C ET;
77
struct RECEIVE_DATA_STRUCTURE{
88
//put your variable definitions here for the data you want to receive
99
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
10-
int blinks;
11-
int pause;
10+
int16_t blinks;
11+
int16_t pause;
1212
};
1313

1414
//give a name to the group of data

EasyTransferI2C/Examples/EasyTransfer_TX_Example/EasyTransfer_TX_Example.pde renamed to EasyTransferI2C/examples/EasyTransfer_TX_Example/EasyTransfer_TX_Example.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ EasyTransferI2C ET;
77
struct SEND_DATA_STRUCTURE{
88
//put your variable definitions here for the data you want to send
99
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
10-
int blinks;
11-
int pause;
10+
int16_t blinks;
11+
int16_t pause;
1212
};
1313

1414
//give a name to the group of data

EasyTransferVirtualWire/Examples/ETVirtualWireDemoRX/ETVirtualWireDemoRX.pde renamed to EasyTransferVirtualWire/examples/ETVirtualWireDemoRX/ETVirtualWireDemoRX.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ struct SEND_DATA_STRUCTURE{
99
//put your variable definitions here for the data you want to send
1010
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
1111
//Struct can'e be bigger then 26 bytes for VirtualWire version
12-
int blinks;
13-
int pause;
12+
int16_t blinks;
13+
int16_t pause;
1414
};
1515

1616
//give a name to the group of data

EasyTransferVirtualWire/Examples/ETVirtualWireDemoTX/ETVirtualWireDemoTX.pde renamed to EasyTransferVirtualWire/examples/ETVirtualWireDemoTX/ETVirtualWireDemoTX.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ struct SEND_DATA_STRUCTURE{
99
//put your variable definitions here for the data you want to send
1010
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
1111
//Struct can'e be bigger then 26 bytes for VirtualWire version
12-
int blinks;
13-
int pause;
12+
int16_t blinks;
13+
int16_t pause;
1414
};
1515

1616
//give a name to the group of data

SoftEasyTransfer/Examples/SoftEasyTransfer_RX_Example/SoftEasyTransfer_RX_Example.pde renamed to SoftEasyTransfer/examples/SoftEasyTransfer_RX_Example/SoftEasyTransfer_RX_Example.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ SoftEasyTransfer ET;
1515
struct RECEIVE_DATA_STRUCTURE{
1616
//put your variable definitions here for the data you want to receive
1717
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
18-
int blinks;
19-
int pause;
18+
int16_t blinks;
19+
int16_t pause;
2020
};
2121

2222
//give a name to the group of data

SoftEasyTransfer/Examples/SoftEasyTransfer_TX_Example/SoftEasyTransfer_TX_Example.pde renamed to SoftEasyTransfer/examples/SoftEasyTransfer_TX_Example/SoftEasyTransfer_TX_Example.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ SoftEasyTransfer ET;
1616
struct SEND_DATA_STRUCTURE{
1717
//put your variable definitions here for the data you want to send
1818
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
19-
int blinks;
20-
int pause;
19+
int16_t blinks;
20+
int16_t pause;
2121
};
2222

2323
//give a name to the group of data

0 commit comments

Comments
 (0)