Mouse code for the MacroRat
Diff: irpair.h
- Revision:
- 9:1d8e4da058cd
- Parent:
- 6:3d68fedd6fd9
- Child:
- 24:e7063765d6f0
diff -r a0760acdc59e -r 1d8e4da058cd irpair.h --- a/irpair.h Fri May 05 01:21:33 2017 +0000 +++ b/irpair.h Sat May 06 01:31:44 2017 +0000 @@ -15,13 +15,15 @@ float getSamples( int i ); + float sensorAvg; + private: void calibrateSensor(); // internal values DigitalOut ir; AnalogIn recv; - float sensorAvg; + };