 
 #define RX_PIN      7   // P4D: digital pin on JeePort #4
 #define TX_PIN      17  // P4A: analog  pin on JeePort #4
+
 #define RESET_PIN   4   // P1D: digital pin on JeePort #1
 #define BOOT0_PIN   14  // P1A: analog  pin on JeePort #1
+
+#define GREEN_PIN   6   // P3D: digital pin on JeePort #3
+#define ERROR_PIN   16  // P3A: analog  pin on JeePort #3
+#define START_PIN   3   // IRQ: interrupt pin on all JeePorts
 
 #define BOOT_LOADER "l052-mecrisp.h"
 


    uint8_t b = 0;
    do {
        Serial.print(".");
        Target.write(0x7F);
        b = getReply();
        //Serial.print(b, HEX);
    } while (b != ACK && b != NAK);

}

static uint8_t getReply () {
    for (long i = 0; i < 50000; ++i)
        if (Target.available())
            return Target.read();
    return 0;
