How to turn on nozzle LED for first 20 layers?

There’s LED I’d like to use during the print of first 20 or so layers to better see what’s underneath the nozzle. I’m using ben2c duct, which blocks light from above significantly, and my side light is not enough to illuminate it during initial layers.
What can I add to gcode to turn on lidar light (I don’t use actual lidar) LED for 20 layers and then if possible shut it down?

hi use following g-code and add it where you need it.

M960 S0 P0 – Calibration lasers, and calibration head white LEDs off
M960 S0 P1 – Calibration lasers, and calibration head white LEDs on

1 Like