document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. #include <TinyWireS.h>
  3. int x;
  4. void setup(){
  5.   TinyWireS.begin(8); // join I2C bus with address #8
  6.   TinyWireS.onRequest(answer);
  7. }
  8.  
  9. void loop(){
  10.   TinyWireS_stop_check();
  11. }
  12.  
  13. void answer(){
  14.  
  15.   TinyWireS.send(x);
  16.   x++;
  17. }
');