Simple test application for X-NUCLEO-IKA01A1 expansion board.

Dependencies:   X_NUCLEO_IKA01A1 mbed

Fork of HelloWorld_IKA01A1 by ST Expansion SW Team

Simple test application for X-NUCLEO-IKA01A1 expansion board.

Platform compatibility issues

  • NUCLEO-F302R8: use pin D5 for LED Driver configuration
  • LPCXpresso11U68: use pin D3 as PWM for LED Driver configuration. Use a free Dx pin as Signal2 for Windows Comparator configuration.

Files at this revision

API Documentation at this revision

Comitter:
hemddabral
Date:
Fri Apr 08 05:30:54 2016 +0000
Parent:
7:41935875cb26
Child:
9:9b48d36016c3
Commit message:
udated main program

Changed in this revision

X_NUCLEO_IKA01A1.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/X_NUCLEO_IKA01A1.lib	Thu Apr 07 04:20:38 2016 +0000
+++ b/X_NUCLEO_IKA01A1.lib	Fri Apr 08 05:30:54 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/hemddabral/code/X_NUCLEO_IKA01A1/#ac16b9a1cad6
+https://developer.mbed.org/users/hemddabral/code/X_NUCLEO_IKA01A1/#8277ca0ab13a
--- a/main.cpp	Thu Apr 07 04:20:38 2016 +0000
+++ b/main.cpp	Fri Apr 08 05:30:54 2016 +0000
@@ -6,7 +6,7 @@
 DigitalOut myled(LED1);
 
 int main() {  
-    X_NUCLEO_IKA01A1 *analog_expansion_board = X_NUCLEO_IKA01A1::Instance();
+    X_NUCLEO_IKA01A1 *analog_expansion_board = X_NUCLEO_IKA01A1::Instance(A3, D2, D4, D3);
     analog_expansion_board->Init();
     TSZ124 *instrAmp = analog_expansion_board->tsz124;
     TSU104 *photoSensor_windComp = analog_expansion_board->tsu104;
@@ -17,7 +17,7 @@
         unsigned int opAmpVoltage = instrAmp->GetVoltage();        
         unsigned int opAmpCurrent = instrAmp->GetCurrent();           
         // pass the analog pin name on which voltage is to be read (e.g. A3 on LPCxpresso lpc11u68)
-        unsigned int photoSensorVoltage = photoSensor_windComp->TSU104_PhotoSensor_GetVoltage(A3);                
+        unsigned int photoSensorVoltage = photoSensor_windComp->TSU104_PhotoSensor_GetVoltage();                
         unsigned int windComPinD2 = photoSensor_windComp->TSU104_WindComp_Get_D2();               
         unsigned int windComPinD4 = photoSensor_windComp->TSU104_WindComp_Get_D4();