mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.
Dependents: HelloWorld_IKA01A1
Fork of X_NUCLEO_IKA01A1 by
Library for STMicroelectronics' X-NUCLEO-IKA01A1 multifunctional expansion board based on operational amplifiers.
Revision 12:ac16b9a1cad6, committed 2016-04-07
- Comitter:
- hemddabral
- Date:
- Thu Apr 07 04:15:34 2016 +0000
- Parent:
- 11:91d59b5ac026
- Child:
- 13:9cecc8d66cc1
- Commit message:
- removed compile time warning for Nucleo F401RE
Changed in this revision
| Components/tsu104/tsu104_class.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
}

X-NUCLEO-IKA01A1 Multifunctional board based on operational amplifiers.