fancy lampje
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FXOS8700Q FastPWM
Diff: main.cpp
- Revision:
- 10:e1eb73e19540
- Parent:
- 9:ae548d05ec71
- Child:
- 11:de4a85703169
--- a/main.cpp Fri Sep 20 09:26:49 2019 +0000 +++ b/main.cpp Fri Sep 20 09:47:41 2019 +0000 @@ -5,11 +5,19 @@ //#include "BiQuad.h" #include "FastPWM.h" #include <iostream> +//#include "encoder.h" MODSERIAL pc(USBTX, USBRX); -Encoder motor1(D13,D12); +//Encoder motor1(D13,D12); PwmOut led(D9); HIDScope scope(3); +AnalogIn ain(A0); +Ticker printstuff; + +void stuffz(void) + { + pc.printf("%f",ain*100.0f); + } int main() @@ -47,6 +55,8 @@ wait(0.01); } */ - AnalogIn ain(A0); + pc.baud() + pc.printf("Starting....\r\n"); + printstuff.attach(stuffz,1); led.write(ain); }