Librairie adaptée au laboratoire 2
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Revision 37:837cffa6b530, committed 2015-11-27
- Comitter:
- mapellil
- Date:
- Fri Nov 27 08:47:30 2015 +0000
- Parent:
- 36:f6278b3e7c82
- Child:
- 38:18abb7f7dcb2
- Commit message:
- Renamed GPIOs using Arduino names for multi vendor compatibility
Changed in this revision
x_nucleo_6180xa1.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/x_nucleo_6180xa1.h Tue Nov 24 16:04:41 2015 +0000 +++ b/x_nucleo_6180xa1.h Fri Nov 27 08:47:30 2015 +0000 @@ -73,16 +73,16 @@ display = new Display(*stmpe1600); gpio0_top=new STMPE1600DigiOut(*dev_i2c, GPIO_12); - sensor_top=new VL6180X(*dev_i2c, *gpio0_top, PB_0); + sensor_top=new VL6180X(*dev_i2c, *gpio0_top, A3); gpio0_bottom=new STMPE1600DigiOut(*dev_i2c, GPIO_13); - sensor_bottom=new VL6180X(*dev_i2c, *gpio0_bottom, PA_4); + sensor_bottom=new VL6180X(*dev_i2c, *gpio0_bottom, A2); gpio0_left=new STMPE1600DigiOut(*dev_i2c, GPIO_14); - sensor_left=new VL6180X(*dev_i2c, *gpio0_left, PA_5); + sensor_left=new VL6180X(*dev_i2c, *gpio0_left, D13); gpio0_right=new STMPE1600DigiOut(*dev_i2c, GPIO_15); - sensor_right=new VL6180X(*dev_i2c, *gpio0_right, PA_10); + sensor_right=new VL6180X(*dev_i2c, *gpio0_right, D2); } /** Constructor 2