Charles Young's development fork. Going forward I only want to push mature code to main repository.
Fork of GEO_COUNTER_L432KC by
Diff: main.cpp
- Revision:
- 15:808e98afe32b
- Parent:
- 14:9018d7c592a0
- Child:
- 16:b2e77eb76ab4
diff -r 9018d7c592a0 -r 808e98afe32b main.cpp --- a/main.cpp Mon Sep 03 08:03:47 2018 -0700 +++ b/main.cpp Mon Sep 03 16:27:05 2018 +0000 @@ -46,7 +46,7 @@ DigitalOut AUX (D2); // AUX control for GPS module InterruptIn TRIG1 (D3); // Counter 1 trigger InterruptIn TRIG2 (D6); // Counter 2 trigger -DigitalIn QEIPB (D9); // Quadrature encoder pushbutton +DigitalIn QEPB (D9); // Quadrature encoder pushbutton PwmOut PWM (D10); // PWM output DigitalOut BUZZ (D13); // Buzzer @@ -163,7 +163,7 @@ seconds = time(NULL); // get current time strftime(Text, 50, "%H:%M:%S", localtime(&seconds)); PC.printf(" RTC: %s, CNT1: %7d CNT2: %7d",Text, Count1, Count2); - PC.printf(" wheel %d %d", WheelCurrent, WheelCurrentState); + PC.printf(" wheel %d %d", WheelCurrent, QEPB.read()); } void Update()