![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
mit
main.cpp@0:bcff39fac858, 2010-08-03 (annotated)
- Committer:
- aberk
- Date:
- Tue Aug 03 08:47:02 2010 +0000
- Revision:
- 0:bcff39fac858
- Child:
- 1:30696e4d196b
Version 1.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aberk | 0:bcff39fac858 | 1 | #include "QEI.h" |
aberk | 0:bcff39fac858 | 2 | |
aberk | 0:bcff39fac858 | 3 | Serial pc(USBTX, USBRX); |
aberk | 0:bcff39fac858 | 4 | QEI wheel(p18, p21, NC, 624); |
aberk | 0:bcff39fac858 | 5 | |
aberk | 0:bcff39fac858 | 6 | int main() { |
aberk | 0:bcff39fac858 | 7 | |
aberk | 0:bcff39fac858 | 8 | while(1){ |
aberk | 0:bcff39fac858 | 9 | pc.printf("Pulses is: %i\n", wheel.getPulses()); |
aberk | 0:bcff39fac858 | 10 | } |
aberk | 0:bcff39fac858 | 11 | |
aberk | 0:bcff39fac858 | 12 | } |