Timing trouble with millis() for LED control

I see I didn't fully answer the question. Hot glue would be
OK as long as there was not too much random pulling on
the wire. Hot glue is not real good at sticking to smooth
surfaces. If its main purpose is to insulate and not to hold
the wire in place, it should be fine.
Dwight