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: Encoder HIDScope mbed
Fork of DemoHidScopeEncoder by
main.cpp
- Committer:
- vsluiter
- Date:
- 2015-09-09
- Revision:
- 0:0b39982f89a9
- Child:
- 1:bac42065f837
File content as of revision 0:0b39982f89a9:
#include "mbed.h" #include "HIDScope.h" #include "encoder.h" Encoder motor1(D13,D12); PwmOut led(D9); HIDScope scope(1); int main() { while (true) { scope.set(0,motor1.getPosition()); led.write(motor1.getPosition()/100.0); scope.send(); wait(0.2f); } }