demo: Implement basic 100Hz analog sine-wave generator
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Mon, 3 Dec 2012 19:20:59 +0000 (13:20 -0600)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Sat, 15 Dec 2012 03:22:44 +0000 (21:22 -0600)
commit32ca6f2c109262da9d810440bd42f0bcfc11b038
treec22964a047de0375bda045de9e09915f82a6dc36
parent0e9a9716ca61ee08674907d8432f5e2523d6a74e
demo: Implement basic 100Hz analog sine-wave generator

Implement a 2V peak-to-peak, 100Hz sine wave.
At the moment, this only works correctly with one probe.

To test, use:
sigrok-cli --driver=demo -d pattern=sine100 --samples 2001 -p 1 -O analog -l 5

The last sample should be exactly 0.000000 V.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
hardware/demo/demo.c