#include #define output (3) #define ATTINY45_SLAVE_A 0x27 void setup() { // put your setup code here, to run once: TinyWireS.begin(ATTINY45_SLAVE_A); pinMode(output, OUTPUT); } volatile byte star = 0; void loop() { // put your main code here, to run repeatedly: if (TinyWireS.available()) star = TinyWireS.receive(); if (star == 1){ digitalWrite (output, HIGH); delay (1000); digitalWrite (output, LOW); delay (1000); } else { digitalWrite (output, LOW); } }