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:
6:5dd31859cea3
Parent:
2:19d1dcef0c0e
Child:
12:ac16b9a1cad6
diff -r 971fe0335af2 -r 5dd31859cea3 Components/tsu104/tsu104_class.h
--- a/Components/tsu104/tsu104_class.h	Thu Mar 17 09:38:30 2016 +0000
+++ b/Components/tsu104/tsu104_class.h	Thu Mar 17 10:34:54 2016 +0000
@@ -150,9 +150,9 @@
 		return windowsCompD4.read();
 	}
 
-	virtual unsigned int TSU104_PhotoSensor_GetVoltage(void)
+	virtual unsigned int TSU104_PhotoSensor_GetVoltage(PinName pin)
 	{
-		AnalogIn photoSensor(A4);
+		AnalogIn photoSensor(pin);
 		float voltage = photoSensor.read();
 		voltage = voltage*3.3*1000.0;   // voltage in mV
 		return voltage;