Skip to content

Commit

Permalink
Update X_NUCLEO_53L8A1_MultiSensorRanging_SPI.ino
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Parata <[email protected]>
  • Loading branch information
cparata authored Jun 18, 2024
1 parent 8e11f7a commit 7b50b88
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,17 @@
#define SPI_CLK_PIN 3
#define SPI_MISO_PIN 5
#define SPI_MOSI_PIN 4
#define CS_PIN 10
#define CS_TOP_PIN 10
#define CS_LEFT_PIN A4
#define CS_RIGHT_PIN 7

SPIClass DEV_SPI(SPI_MOSI_PIN, SPI_MISO_PIN, SPI_CLK_PIN);

// Components.
VL53L8CX sensor_vl53l8cx_top(&DEV_SPI, CS_PIN,LPN_TOP_PIN);
VL53L8CX sensor_vl53l8cx_top(&DEV_SPI, CS_TOP_PIN, LPN_TOP_PIN);
#ifdef SATELLITES_MOUNTED
VL53L8CX sensor_vl53l8cx_left(&DEV_SPI,CS_PIN, LPN_LEFT_PIN);
VL53L8CX sensor_vl53l8cx_right(&DEV_SPI,CS_PIN, LPN_RIGHT_PIN);
VL53L8CX sensor_vl53l8cx_left(&DEV_SPI, CS_LEFT_PIN, LPN_LEFT_PIN);
VL53L8CX sensor_vl53l8cx_right(&DEV_SPI, CS_RIGHT_PIN, LPN_RIGHT_PIN);
#endif

uint8_t status;
Expand Down

0 comments on commit 7b50b88

Please sign in to comment.