mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.

Dependents:   HelloWorld_IKA01A1

Fork of X_NUCLEO_IKA01A1 by ST Expansion SW Team

Library for STMicroelectronics' X-NUCLEO-IKA01A1 multifunctional expansion board based on operational amplifiers.

Revision:
12:ac16b9a1cad6
Parent:
6:5dd31859cea3
Child:
13:9cecc8d66cc1
--- a/Components/tsu104/tsu104_class.h	Wed Apr 06 09:07:36 2016 +0000
+++ b/Components/tsu104/tsu104_class.h	Thu Apr 07 04:15:34 2016 +0000
@@ -153,7 +153,7 @@
 	virtual unsigned int TSU104_PhotoSensor_GetVoltage(PinName pin)
 	{
 		AnalogIn photoSensor(pin);
-		float voltage = photoSensor.read();
+		double voltage = photoSensor.read();
 		voltage = voltage*3.3*1000.0;   // voltage in mV
 		return voltage;
 	}