 void loop() {
   GameCubeData_t data;
 
+  iwdg_feed();
   uint32_t t0 = millis();
 
   while((millis()-t0) < 6) {

// Put LEDs + resistors (100-220 ohm) between PA0,PA1,PA2,PA3 and 3.3V
// Put momentary pushbuttons between PA4,PA5 and 3.3V

#include "debounce.h"
#include "gamecube.h"

#undef SERIAL_DEBUG

const uint32_t numInjectionModes = sizeof(injectors)/sizeof(*injectors);

const uint32_t indicatorLEDs[] = { PA0, PA1, PA2, PA3 };

  updateDisplay();

  lastChangedModeTime = 0;

  iwdg_init(IWDG_PRE_256, watchdogSeconds*156);
}

// at most 32 bits can be sent
