Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GEO_COUNTER_L432KC by
Diff: main.cpp
- Revision:
- 78:0fd2f71c2d64
- Parent:
- 77:87aac94b235a
- Child:
- 79:5cdbe0d2adbb
--- a/main.cpp Thu Sep 13 15:35:08 2018 -0700
+++ b/main.cpp Fri Sep 14 16:54:32 2018 -0700
@@ -125,8 +125,8 @@
//RTC::attach(&Update, RTC::Second);
//RTC::detach(RTC::Second);
- TRIG1.rise(&Count1_up);
- TRIG2.rise(&Count2_up);
+ TRIG1.fall(&Count1_up);
+ TRIG2.fall(&Count2_up);
for (uint8_t i=0;i<CountAvg;i++)
{
@@ -198,8 +198,8 @@
if(Stopped)
{
// disable interrupts on TRIG1 and TRIG2
- TRIG1.rise(NULL);
- TRIG2.rise(NULL);
+ TRIG1.fall(NULL);
+ TRIG2.fall(NULL);
}
// This must be called periodically to update the LEDs
