Program to test the quadrature encoders on the mbed WSE single board computer.
This program uses the mbed WSE project SBC to read from both encoder channels and transmit the program run time and encoder count position to a PC through the virtual com port (USB).
Diff: main.cpp
- Revision:
- 1:dc6b98039052
- Parent:
- 0:0e1fba1db6a4
diff -r 0e1fba1db6a4 -r dc6b98039052 main.cpp --- a/main.cpp Thu Sep 25 13:54:36 2014 +0000 +++ b/main.cpp Thu Oct 16 17:38:59 2014 +0000 @@ -7,7 +7,7 @@ //------------------- MAIN -------------------------------- int main() { - long enc1, enc2; + long enc1, enc2 = 0; mbedWSEsbcInit(9600); //Initialize the mbed WSE Project SBC