ZI6 lib
Dependencies: C12832
Diff: SinusGen.h
- Revision:
- 0:3dddb6a52298
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SinusGen.h Thu Jun 23 13:45:33 2016 +0000 @@ -0,0 +1,24 @@ +#ifndef SINUS_GEN +#define SINUS_GEN + +#include "mbed.h" +#include "C12832.h" + +class SinusGen { + public: + SinusGen(PinName temp1Pin, PinName temp2Pin, PinName tipkaloPin); + + private: + AnalogIn pot1, pot2; + InterruptIn tipkalo; + C12832 lcd; + PwmOut led1, led2, led3, led4; + Ticker ticker; + void generirajPrikazi(); + int izbor; + float U, A, y, t; + void izborLedice(); + Timer debounce; +}; + +#endif \ No newline at end of file