M291 R"LEDs Test" P"Do you want to start LEDs Test?" S4 K{"Test","Skip","Cancel"}
if input == 1
    M99
elif input == 2
    abort "Test cancelled by user"

elif input == 0


    M106 P6 S1
    M291 R"White LED Test" P"Confirm that the White LED ring is illuminated." S4 K{"White is ON","Skip","Cancel"}
    if input == 1
        M99
    elif input == 2
        abort "Test cancelled by user"

    M106 P6 S0



    M42 P1 S0.1
    M291 R"Red LED Test" P"Confirm that the Red LED is illuminated." S4 K{"Red is ON","Cancel"}
    M42 P1 S0


    M42 P2 S0.1
    M291 R"Green LED Test" P"Confirm that the Green LED is illuminated." S4 K{"Green is ON","Cancel"}
    M42 P2 S0


    M42 P3 S0.1
    M291 R"Blue LED Test" P"Confirm that the Blue LED is illuminated." S4 K{"Blue is ON","Cancel"}
    M42 P3 S0

    M42 P1 S1
    M42 P2 S1
    M42 P3 S1
    M291 R"All LEDs Test" P"Confirm that all RGB LEDs are illuminated." S4 K{"All LEDs ON","Cancel"}

    M42 P1 S0
    M42 P2 S0
    M42 P3 S0

    M106 P6 S1