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:
- 65:5f087e22a9d1
- Parent:
- 64:58098da79a07
- Child:
- 66:ea8661d43663
--- a/main.cpp Sun Sep 09 06:21:07 2018 -0700 +++ b/main.cpp Sun Sep 09 06:23:43 2018 -0700 @@ -288,27 +288,27 @@ break; } - ADC_val = KEYB.read(); // read voltage from keyboard - if ( (ADC_val<0.1) // START/STOP pushbutton pressed - && (!StartStopPressed)) - { - StartStopPressed = true; - if (Stopped) - { - // Enable interrupts on rising edge of digital inputs TRIG1 & TRIG2 - TRIG1.rise(&Count1_up); - TRIG2.rise(&Count2_up); - } - Stopped=!Stopped; // toggle status - } - else - StartStopPressed = false; + // ADC_val = KEYB.read(); // read voltage from keyboard + // if ( (ADC_val<0.1) // START/STOP pushbutton pressed + // && (!StartStopPressed)) + // { + // StartStopPressed = true; + // if (Stopped) + // { + // // Enable interrupts on rising edge of digital inputs TRIG1 & TRIG2 + // TRIG1.rise(&Count1_up); + // TRIG2.rise(&Count2_up); + // } + // Stopped=!Stopped; // toggle status + // } + // else + // StartStopPressed = false; - if((ADC_val>0.6)&&(ADC_val<0.7)) // CLEAR pushbutton pressed - { - Count1 = 0; // clear counters - Count2 = 0; - } + // if((ADC_val>0.6)&&(ADC_val<0.7)) // CLEAR pushbutton pressed + // { + // Count1 = 0; // clear counters + // Count2 = 0; + // } //logToPC(); return; }