   digitalWrite(pinIG1, HIGH); // 2-4
   digitalWrite(pinIG2, HIGH); // 7-6
   digitalWrite(pinST2, LOW);  // 7-8
-  ledShift = 0; ledAmp = 255;
+  ledShift = 32; ledAmp = 0;
   Serial.println("Mode: ignition on"); Serial.flush();
 }
 

    ST();
  }

  analogWrite(pinLed, ledShift + ledAmp * cos(2 * PI / ledPeriod * (millis() - fadeStart)));

  delay(50);



byte ledAmp = 0;
byte ledShift = 0;
int ledPeriod = 0;
unsigned long fadeStart = 0;

void setup() {
