![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Summer 19 code
Dependencies: wheelchaircontrol1
Diff: main.cpp
- Revision:
- 10:b4d68db3ddbd
- Parent:
- 9:ca11e4db63a7
- Child:
- 11:73b4380d82bf
--- a/main.cpp Fri Apr 19 23:08:27 2019 +0000 +++ b/main.cpp Thu Jun 27 16:32:18 2019 +0000 @@ -25,17 +25,17 @@ Serial pc(USBTX, USBRX, 57600); //Serial Monitor -VL53L1X sensor1(PB_11, PB_10, D0); //initializes ToF sensors -VL53L1X sensor2(PB_11, PB_10, D1); -VL53L1X sensor3(PB_11, PB_10, D2); -VL53L1X sensor4(PB_11, PB_10, D3); -VL53L1X sensor5(PB_11, PB_10, D4); -VL53L1X sensor6(PB_11, PB_10, D5); -VL53L1X sensor7(PB_11, PB_10, PE_14); -VL53L1X sensor8(PB_11, PB_10, PE_12); -VL53L1X sensor9(PB_11, PB_10, PE_10); -VL53L1X sensor10(PB_11, PB_10, PE_15); -VL53L1X sensor11(PB_11, PB_10, D6); +VL53L1X sensor1(PD_13, PD_12, PA_15); //initializes ToF sensors +VL53L1X sensor2(PD_13, PD_12, PC_7); +VL53L1X sensor3(PD_13, PD_12, PB_5); +VL53L1X sensor4(PD_13, PD_12, PE_11); +VL53L1X sensor5(PD_13, PD_12, PF_14); +VL53L1X sensor6(PD_13, PD_12, PE_13); +VL53L1X sensor7(PD_13, PD_12, D6); +VL53L1X sensor8(PD_13, PD_12, PE_12); +VL53L1X sensor9(PD_13, PD_12, PE_10); +VL53L1X sensor10(PD_13, PD_12, PE_15); +VL53L1X sensor11(PD_13, PD_12, D6); VL53L1X sensor12(PB_11, PB_10, D11); VL53L1X* ToF[12] = {&sensor1, &sensor2, &sensor3, &sensor4, &sensor5, &sensor6,