diff core/PulseIn.cpp @ 308:1feb9c23ac57 prerelease

Renamed read/write functions to remove the Frame --> e.g. analogWriteFrameOnce -> analogWriteOnce, digitalReadFrame -> digitalRead
author andrewm
date Fri, 27 May 2016 18:21:21 +0100
parents e4392164b458
children 02c4ca0e3718
line wrap: on
line diff
--- a/core/PulseIn.cpp	Fri May 27 18:12:15 2016 +0100
+++ b/core/PulseIn.cpp	Fri May 27 18:21:21 2016 +0100
@@ -25,12 +25,12 @@
 	}
 	for(unsigned int n = 0; n < context->digitalFrames; n++){
 		if(_pulseIsOn == false){ // look for start edge
-			if(digitalReadFrame(context, n, _digitalInput) == _pulseOnState){
+			if(digitalRead(context, n, _digitalInput) == _pulseOnState){
 				_pulseStart = context->audioSampleCount + n; // store location of start edge
 				_pulseIsOn = true;
 			}
 		} else { // _pulseIsOn == true;
-			if(digitalReadFrame(context, n, _digitalInput) == !_pulseOnState){ // look for stop edge
+			if(digitalRead(context, n, _digitalInput) == !_pulseOnState){ // look for stop edge
 				_array[n] = context->audioSampleCount + n - _pulseStart; // compute and store pulse duration
 				_pulseIsOn = false;
 			}