     // initialize ZG01 pins
     pinMode(PIN_CLOCK, INPUT);
     pinMode(PIN_DATA, INPUT);
+
+    // initialize LED
+    pinMode(PIN_LED, OUTPUT);
 
     // initialize serial port
     Serial.begin(9600);


#define PIN_CLOCK   2
#define PIN_DATA    3

static uint8_t buffer[5];



    // wait until clock is high again
    while (digitalRead(PIN_CLOCK) == LOW);    

    // indicate activity on LED
    digitalWrite(PIN_LED, LOW);
}


