Mercurial > hg > beaglert
diff core/PulseIn.cpp @ 301:e4392164b458 prerelease
RENAMED BeagleRT to Bela AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, scripts probably not working
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 27 May 2016 14:34:41 +0100 |
parents | 3c3d14654b7f |
children | 1feb9c23ac57 |
line wrap: on
line diff
--- a/core/PulseIn.cpp Fri May 27 13:58:20 2016 +0100 +++ b/core/PulseIn.cpp Fri May 27 14:34:41 2016 +0100 @@ -7,7 +7,7 @@ #include "../include/PulseIn.h" -void PulseIn::init(BeagleRTContext* context, unsigned int digitalInput, int direction){ +void PulseIn::init(BelaContext* context, unsigned int digitalInput, int direction){ _digitalInput = digitalInput; _pulseIsOn = false; _pulseOnState = direction == 1 ? 1 : 0; @@ -16,7 +16,7 @@ pinModeFrame(context, 0, digitalInput, INPUT); //context is used to allocate the number of elements in the array } -void PulseIn::check(BeagleRTContext* context){ +void PulseIn::check(BelaContext* context){ if(_digitalInput == -1){ //must be init'ed before calling check(); throw(1); }