 #ifndef ARDUINO_HOODLOADER2 
 
 #define RESET     4 // Use BuildingBlocks MainBoard specific pin for reseting the target.
-#define LED_HB    9
-#define LED_ERR   8
-#define LED_PMODE 7
+//#define LED_HB    9
+//#define LED_ERR   8
+//#define LED_PMODE 7
 
 // Uncomment following line to use the old Uno style wiring
 // (using pin 11, 12 and 13 instead of the SPI header) on Leonardo, Due...

  if (hbval > 192) hbdelta = -hbdelta;
  if (hbval < 32) hbdelta = -hbdelta;
  hbval += hbdelta;
  analogWrite(LED_HB, hbval);
}

static bool rst_active_high;

                  data);
}
void commit(unsigned int addr) {
  //if (PROG_FLICKER) {
  //  prog_lamp(LOW);
  //}
  spi_transaction(0x4C, (addr >> 8) & 0xFF, addr & 0xFF, 0);
  //if (PROG_FLICKER) {
  //  delay(PTIME);
  //  prog_lamp(HIGH);
  //}
}

unsigned int current_page() {
