Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
main.cpp@2:cd67be02b1f7, 2019-09-09 (annotated)
- Committer:
- IslamKhalil
- Date:
- Mon Sep 09 09:56:42 2019 +0000
- Revision:
- 2:cd67be02b1f7
- Parent:
- 1:b862262a9d14
- Child:
- 3:766c85141f33
- Child:
- 5:c48d1e7b3b64
Template biorobotics added
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| RobertoO | 0:67c50348f842 | 1 | #include "mbed.h" |
| IslamKhalil | 2:cd67be02b1f7 | 2 | #include "HIDScope.h" |
| IslamKhalil | 2:cd67be02b1f7 | 3 | #include "QEI.h" |
| RobertoO | 1:b862262a9d14 | 4 | #include "MODSERIAL.h" |
| IslamKhalil | 2:cd67be02b1f7 | 5 | #include "BiQuad.h" |
| IslamKhalil | 2:cd67be02b1f7 | 6 | #include "FastPWM.h" |
| RobertoO | 0:67c50348f842 | 7 | |
| IslamKhalil | 2:cd67be02b1f7 | 8 | DigitalOut led(LED_BLUE); |
| 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 | |
| IslamKhalil | 2:cd67be02b1f7 | 21 | wait_ms(1000); |
| RobertoO | 0:67c50348f842 | 22 | } |
| RobertoO | 0:67c50348f842 | 23 | } |