Spark Photon not connecting to serial and touch screen unresponsive

Just as an update, it seems that the script was hanging because I did not have the DS2482 connected. I now have it working properly.