 const uint8_t nPins = 7; // długość tabel poniżej
 const uint8_t switchPins[] = {4,  5, 8, 12, 0, 0,  0};	// Dx: stage, RCS, SAS, gear switch, overheat, lowpower, lowfuel
 const uint8_t onPins[] =     {0, 13, 9,  0, 0, 0,  0};	// Gx: stage, RCS, SAS, overheat, lowpower, lowfuel ON (green)
-const uint8_t offPins[] =    {0,  0, 0,  0, 6, 7, 10};	// Rx: stage, RCS, SAS, overheat, lowpower, lowfuel OFF (red)
+const uint8_t offPins[] =    {0,  0, 0,  0, 6, 7,  3};	// Rx: stage, RCS, SAS, overheat, lowpower, lowfuel OFF (red)
 uint8_t lastPinState[] = {HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH};
 uint8_t lastLedState[] =  {0, 0, 0, 0, 0, 0, 0};	// bits: 0=GxON, 1=RxON, 2=GxBLINK, 3=RxBLINK
 

unsigned long lastBlink = 0;
const unsigned long blinkInterval = 500;

// analog control
const uint8_t nAPins = 2;
const uint8_t aPins[] = {A0, A1};	// pot: throttle, timewarp
const int lastAValue[] = {0, 0};
const int aValue[] = {0, 0};
const int aThreshold[] = {2, 2};

// serial port
#define SERIAL_SPEED 9600

  updateLeds();
  delay(200);
}
