Sin wave generation class using D/A converter(LPC1768)
Dependents: agic_touch_panel_v3
Sinwave.h
- Committer:
- macht
- Date:
- 2014-06-24
- Revision:
- 0:e934e95962bd
File content as of revision 0:e934e95962bd:
#ifndef SINWAVE_H_ #define SINWAVE_H_ #include"mbed.h" class Sinwave{ public: Sinwave(PinName DAport,float amplitude,float frequency); void start(); void stop(); private: void update(); float outputs_[10]; float cycle_; Ticker output_int_; AnalogOut DAport_; }; #endif