Skip to content

Improve compatibility between boards with different processors #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ EasyTransfer ETin, ETout;
struct RECEIVE_DATA_STRUCTURE{
//put your variable definitions here for the data you want to receive
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int buttonstate;
int16_t buttonstate;
};

struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to receive
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int buttonstate;
int servoval;
int16_t buttonstate;
int16_t servoval;
};

//give a name to the group of data
Expand All @@ -46,9 +46,8 @@ void setup(){
ETout.begin(details(txdata), &Serial);

pinMode(13, OUTPUT);
pinMode(12, INPUT);
//enable pull-up
digitalWrite(12, HIGH);
pinMode(12, INPUT_PULLUP);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ Servo myservo;
struct RECEIVE_DATA_STRUCTURE{
//put your variable definitions here for the data you want to receive
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int buttonstate;
int servoval;
int16_t buttonstate;
int16_t servoval;
};

struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to receive
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int buttonstate;
int16_t buttonstate;
};


Expand All @@ -47,9 +47,8 @@ void setup(){
ETout.begin(details(txdata), &Serial);

pinMode(13, OUTPUT);
pinMode(12, INPUT);
//enable pull-up
digitalWrite(12, HIGH);
pinMode(12, INPUT_PULLUP);

myservo.attach(9);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ EasyTransfer ET;
struct RECEIVE_DATA_STRUCTURE{
//put your variable definitions here for the data you want to receive
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ EasyTransfer ET;
struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to send
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ EasyTransferI2C ET;
struct RECEIVE_DATA_STRUCTURE{
//put your variable definitions here for the data you want to receive
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ EasyTransferI2C ET;
struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to send
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to send
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
//Struct can'e be bigger then 26 bytes for VirtualWire version
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to send
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
//Struct can'e be bigger then 26 bytes for VirtualWire version
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ SoftEasyTransfer ET;
struct RECEIVE_DATA_STRUCTURE{
//put your variable definitions here for the data you want to receive
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ SoftEasyTransfer ET;
struct SEND_DATA_STRUCTURE{
//put your variable definitions here for the data you want to send
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
int blinks;
int pause;
int16_t blinks;
int16_t pause;
};

//give a name to the group of data
Expand Down