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:
- 79:5cdbe0d2adbb
- Parent:
- 78:0fd2f71c2d64
- Child:
- 80:5770804da1b0
--- a/main.cpp Fri Sep 14 16:54:32 2018 -0700 +++ b/main.cpp Fri Sep 14 19:29:29 2018 -0700 @@ -125,8 +125,10 @@ //RTC::attach(&Update, RTC::Second); //RTC::detach(RTC::Second); - TRIG1.fall(&Count1_up); - TRIG2.fall(&Count2_up); + TRIG1.rise(&Count1_up); + TRIG1.mode(PullDown); + TRIG2.rise(&Count2_up); + TRIG2.mode(PullDown); for (uint8_t i=0;i<CountAvg;i++) { @@ -198,8 +200,8 @@ if(Stopped) { // disable interrupts on TRIG1 and TRIG2 - TRIG1.fall(NULL); - TRIG2.fall(NULL); + TRIG1.rise(NULL); + TRIG2.rise(NULL); } // This must be called periodically to update the LEDs