AC 230V (50Hz) PWM Dimmer macht Schwierigkeiten

So ganz klappt es immer noch nicht.
Ich habe zwar einen Bereich gefunden, in der auch meine zickiges LED Leuchtmittel sich flackerfrei dimmen läßt...ABER...
Das ganze läßt sich nicht in meinen Sketch einbinden.
Könnte daran liegen, dass das Beispiel mit delayMicroseconds arbeitet.
Uff....gibt es eine Möglichkeit, dass auf millis umzumünzen?

Ich hab echt ein Brett vorm Kopf...

void zero_crosss_int()  //function to be fired at the zero crossing to dim the light
{
 int dimtime = (75*DimmWert1);    // For 60Hz =>65    
 delayMicroseconds(dimtime);    // Wait till firing the TRIAC    
 digitalWrite(DimmPin1, HIGH);   // Fire the TRIAC
 delayMicroseconds(10);         // triac On propogation delay 
                                 // (for 60Hz use 8.33) Some Triacs need a longer period
 digitalWrite(DimmPin1, LOW);    // No longer trigger the TRIAC (the next zero crossing will swith it off) TRIAC
}