An application to log WiFi SSIDs for position lookup testing
Dependencies: C027_Support SWO mbed-rtos mbed picojson
Fork of lpc4088_ebb_ublox_Cellular_PubNubDemo_rtos by
AnalogMeasurement.cpp
00001 #include "AnalogMeasurement.h" 00002 00003 AnalogMeasurement::AnalogMeasurement(AnalogIn& analog1, AnalogIn& analog2) : 00004 _analog1(analog1), 00005 _analog2(analog2) 00006 { 00007 _init = false; 00008 } 00009 00010 bool AnalogMeasurement::init() 00011 { 00012 if (_init) 00013 return false; 00014 00015 _init = true; 00016 return true; 00017 } 00018 00019 bool AnalogMeasurement::run() 00020 { 00021 float analog1 = _analog1.read(); 00022 float analog2 = _analog2.read(); 00023 00024 printf("A0: %.2f A1: %.2f", analog1, analog2); 00025 00026 return true; 00027 }
Generated on Sun Jul 17 2022 02:39:36 by
1.7.2
Richard Osterloh
