If your Arduino MKR1000 doesn't run it's program when you power-up or press the restart button, and you're using the serial display, change the following:
If you have:
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
try changing it to:
while (!Serial) {
delay(1000);
; // wait for serial port to connect. Needed for native USB port only
}
If this doesn't work, simply remove (or coment out) those three lines.
My arduino program would only run immediately after I uploaded the program. Pressing the reset button or disconnecting the USB and reconnecting the power didn't restart the program. Adding the 10 millisecond delay solved the problem.