Eric Hill
/
dac_controller2
can version
Fork of dac_controller by
Diff: main.cpp
- Revision:
- 1:4bd950ab8756
- Child:
- 2:c0287d9c2226
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 04 18:48:23 2014 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "log.h" +#include "DAC.h" +#include "mcp4725.h" +Timer programTimer; +//Timer DACC_timer; +//DigitalOut testLed(LED1); + +int main() +{ + + DAC_set(3.0, FREQ_1HZ, FORM_SQUARE); + DAC_start(); + while(1) { + DAC_generate(); + } + + +} \ No newline at end of file