first iteration
Dependencies: HIDScope MODSERIAL QEI mbed
Revision 0:73e5a9a52c38, committed 2017-10-02
- Comitter:
- Arnoud113
- Date:
- Mon Oct 02 12:53:07 2017 +0000
- Commit message:
- first iteration;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HIDScope.lib Mon Oct 02 12:53:07 2017 +0000 @@ -0,0 +1,1 @@ +http://os.mbed.com/users/tomlankhorst/code/HIDScope/#d23c6edecc49
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MODSERIAL.lib Mon Oct 02 12:53:07 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Sissors/code/MODSERIAL/#a3b2bc878529
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/QEI.lib Mon Oct 02 12:53:07 2017 +0000 @@ -0,0 +1,1 @@ +http://os.mbed.com/users/aberk/code/QEI/#5c2ad81551aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Oct 02 12:53:07 2017 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "QEI.h" +#include "MODSERIAL.h" + +DigitalOut gpo(D0); +DigitalOut led(LED_BLUE); +MODSERIAL pc(USBTX, USBRX); + + +int main() +{ + + pc.baud(115200); + while(true){ + int counts; + QEI Encoder(D12,D13,NC,64); + counts = Encoder.getPulses(); + pc.printf("\r number of counts: %i\n",counts); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Oct 02 12:53:07 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/675da3299148 \ No newline at end of file