add laserOn function in c