eyes17/code/waveforms.py
raw| 1 | #import eyes17.eyes # uncomment these two lines while running stand-alone |
| 2 | #p = eyes17.eyes.open() |
| 3 | |
| 4 | # Connect WG to A1 |
| 5 | |
| 6 | from pylab import * |
| 7 | |
| 8 | def f1(x): # |
| 9 | return sin(x) + sin(3*x)/3 |
| 10 | |
| 11 | p.load_equation(f1, [-pi,pi]) |
| 12 | p.set_wave(400) |
| 13 | |
| 14 | x,y = p.capture1('A1', 500,10) |
| 15 | plot(x,y) |
| 16 | show() |