From 65ada6d9655385f0a1408e39867d1f1b414b6e2f Mon Sep 17 00:00:00 2001 From: Carlo PARATA Date: Fri, 10 Nov 2023 22:00:28 +0100 Subject: [PATCH] Fix issues on SPI begin --- .../X_NUCLEO_53L8A1_HelloWorld_SPI.ino | 2 +- .../X_NUCLEO_53L8A1_MultiSensorRanging_SPI.ino | 2 +- .../X_NUCLEO_53L8A1_ThresholdDetection_SPI.ino | 2 +- library.properties | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/X_NUCLEO_53L8A1_HelloWorld_SPI/X_NUCLEO_53L8A1_HelloWorld_SPI.ino b/examples/X_NUCLEO_53L8A1_HelloWorld_SPI/X_NUCLEO_53L8A1_HelloWorld_SPI.ino index 6812917..ae420c6 100644 --- a/examples/X_NUCLEO_53L8A1_HelloWorld_SPI/X_NUCLEO_53L8A1_HelloWorld_SPI.ino +++ b/examples/X_NUCLEO_53L8A1_HelloWorld_SPI/X_NUCLEO_53L8A1_HelloWorld_SPI.ino @@ -83,7 +83,7 @@ void setup() SerialPort.begin(460800); // Initialize SPI bus. - DEV_SPI.begin(CS_PIN); + DEV_SPI.begin(); // Configure VL53L8CX component. sensor_vl53l8cx_top.begin(); diff --git a/examples/X_NUCLEO_53L8A1_MultiSensorRanging_SPI/X_NUCLEO_53L8A1_MultiSensorRanging_SPI.ino b/examples/X_NUCLEO_53L8A1_MultiSensorRanging_SPI/X_NUCLEO_53L8A1_MultiSensorRanging_SPI.ino index 87a3acd..3f16ea1 100644 --- a/examples/X_NUCLEO_53L8A1_MultiSensorRanging_SPI/X_NUCLEO_53L8A1_MultiSensorRanging_SPI.ino +++ b/examples/X_NUCLEO_53L8A1_MultiSensorRanging_SPI/X_NUCLEO_53L8A1_MultiSensorRanging_SPI.ino @@ -85,7 +85,7 @@ void setup() SerialPort.begin(460800); // Initialize SPI bus. - DEV_SPI.begin(CS_PIN); + DEV_SPI.begin(); // Enable PWREN top pin if present if (PWREN_TOP_PIN >= 0) { diff --git a/examples/X_NUCLEO_53L8A1_ThresholdDetection_SPI/X_NUCLEO_53L8A1_ThresholdDetection_SPI.ino b/examples/X_NUCLEO_53L8A1_ThresholdDetection_SPI/X_NUCLEO_53L8A1_ThresholdDetection_SPI.ino index a297211..dd2aa7d 100644 --- a/examples/X_NUCLEO_53L8A1_ThresholdDetection_SPI/X_NUCLEO_53L8A1_ThresholdDetection_SPI.ino +++ b/examples/X_NUCLEO_53L8A1_ThresholdDetection_SPI/X_NUCLEO_53L8A1_ThresholdDetection_SPI.ino @@ -91,7 +91,7 @@ void setup() SerialPort.begin(460800); // Initialize SPI bus. - DEV_SPI.begin(CS_PIN); + DEV_SPI.begin(); // Set interrupt pin pinMode(INT_PIN, INPUT_PULLUP); diff --git a/library.properties b/library.properties index 491819c..1c4bd52 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=STM32duino X-NUCLEO-53L8A1 -version=1.0.0 +version=1.0.1 author=STMicroelectronics maintainer=stm32duino sentence=Allows controlling the VL53L8CX sensors on board of X-NUCLEO-53L8A1