# Released to the public Domain October 2013
# Jay Summet
#Demo program that writes a webpage based upon robot
#sensor inputs.
from Myro import *
init()
picList = []
myFile = open("demo.html", "w")
top = """
My Demo page!
CS 1301 demo page
"""
myFile.write(top)
myFile.write('')
for x in range(10):
lv = getLight("center")
lvStr = "Light Value: {}
\n".format(lv)
myFile.write(lvStr)
turnLeft(0.25, 0.25)
p = takePicture()
picList.append(p)
savePicture(picList, "class.gif")
myFile.write("")
myFile.close()
print("All done!")