#include //including libraries; #define Target_ID 0x8 //defining my only one slave ID; uint8_t master_data[16]; //global buffer to store data to send to the master; uint8_t master_bytes; //variable of bytes to send to the master; void requestEvent() { uint8_t i; for (i = 0; i < master_bytes; i++) // So I set to send the data buffer to the master.. TinyWire.send(master_data[i]); for (i = 0; i < master_bytes; i++) //.. and corrupt the byte values in the data buffer so those follwings won't match; master_data[i] += 0x5a; master_bytes = 9; TinyWire.send("connected"); //Now I'm declaring what my slave will send to the master when there will be the request. } void setup() { TinyWire.begin(Target_ID); // So I set the communication fuction from my slave.. TinyWire.onRequest(requestEvent); // ..and waiting for the request to send this message in characters. } void loop() { }