To automatically run a MicroPython program, simply save it to the device with the name main.py.