emg
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
main.cpp@1:b862262a9d14, 2019-09-04 (annotated)
- Committer:
- RobertoO
- Date:
- Wed Sep 04 15:30:13 2019 +0000
- Revision:
- 1:b862262a9d14
- Parent:
- 0:67c50348f842
- Child:
- 2:c87703888e97
Added right FastPWM library as well
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RobertoO | 0:67c50348f842 | 1 | #include "mbed.h" |
RobertoO | 0:67c50348f842 | 2 | //#include "HIDScope.h" |
RobertoO | 0:67c50348f842 | 3 | //#include "QEI.h" |
RobertoO | 1:b862262a9d14 | 4 | #include "MODSERIAL.h" |
RobertoO | 0:67c50348f842 | 5 | //#include "BiQuad.h" |
RobertoO | 1:b862262a9d14 | 6 | //#include "FastPWM.h" |
RobertoO | 0:67c50348f842 | 7 | |
RobertoO | 0:67c50348f842 | 8 | DigitalOut led(LED_RED); |
RobertoO | 0:67c50348f842 | 9 | |
RobertoO | 1:b862262a9d14 | 10 | MODSERIAL pc(USBTX, USBRX); |
RobertoO | 0:67c50348f842 | 11 | |
RobertoO | 0:67c50348f842 | 12 | int main() |
RobertoO | 0:67c50348f842 | 13 | { |
RobertoO | 0:67c50348f842 | 14 | pc.baud(115200); |
RobertoO | 1:b862262a9d14 | 15 | pc.printf("\r\nStarting...\r\n\r\n"); |
RobertoO | 0:67c50348f842 | 16 | |
RobertoO | 0:67c50348f842 | 17 | while (true) { |
RobertoO | 0:67c50348f842 | 18 | |
RobertoO | 1:b862262a9d14 | 19 | led = !led; |
RobertoO | 0:67c50348f842 | 20 | |
RobertoO | 0:67c50348f842 | 21 | wait_ms(500); |
RobertoO | 0:67c50348f842 | 22 | } |
RobertoO | 0:67c50348f842 | 23 | } |