def POST(self):
        i = web.input()
        m = i.text3
        n = i.text4
        m = int(m)
        n = int(n)
        p = eyes.open() 
        if ((m == 0) and (n == 0)): 
            p.write_outputs(0)
        elif((m == 1) and ( n == 0)):
            p.write_outputs(1)
        elif((n == 1) and ( m == 0 )):
            p.write_outputs(2)
        elif((m ==1) and (n ==1)):
	    p.write_outputs(3)   
        else:
            p.write_outputs(0)
 def POST(self):
     i = web.input()
     n = i.text8
     n = int(n)
     p = eyes.open()
     p.set_sqr1(n)
 def GET(self):
     p = eyes.open()
     a = p.read_inputs() & 3
     return bin(a)
    def GET(self): 
        p = eyes.open()
	a = p.capture(0, 200, 100)
	t, v = a 
        return  render.graph(v)
    def GET(self):
        p = eyes.open()
	a = p.capture(0, 200, 100)
	t, v = a 
        return render.experiment5(v)
 def GET(self):
     p=eyes.open()
     a=p.get_voltage(2)
     return a