Skip to content

Commit 2557f2a

Browse files
committed
add stm32L4+ discovery kit for BLE access of all examples
B_L4S5I_IOT01A is using same pins for Bluetooth and SPI3 as the discovery kit B-L475E-IOT01A1 Signed-off-by: Francois Ramu <[email protected]>
1 parent 3559592 commit 2557f2a

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

examples/Central/LedControl/LedControl.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ SPIClass SpiHCI(PC3, PD3, PD1);
2222
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
2323
BLELocalDevice BLE(&HCISpiTransport);
2424
const int buttonPin = PG1; // set buttonPin to digital pin PG1
25-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
26-
/* B-L475E-IOT01A1 */
25+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
26+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A */
2727
SPIClass SpiHCI(PC12, PC11, PC10);
2828
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
2929
BLELocalDevice BLE(&HCISpiTransport);

examples/Central/PeripheralExplorer/PeripheralExplorer.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
SPIClass SpiHCI(PC3, PD3, PD1);
2121
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
2222
BLELocalDevice BLE(&HCISpiTransport);
23-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
24-
/* B-L475E-IOT01A1 */
23+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
24+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A */
2525
SPIClass SpiHCI(PC12, PC11, PC10);
2626
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
2727
BLELocalDevice BLE(&HCISpiTransport);

examples/Central/Scan/Scan.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
SPIClass SpiHCI(PC3, PD3, PD1);
1818
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
1919
BLELocalDevice BLE(&HCISpiTransport);
20-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
21-
/* B-L475E-IOT01A1 */
20+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
21+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A *//
2222
SPIClass SpiHCI(PC12, PC11, PC10);
2323
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
2424
BLELocalDevice BLE(&HCISpiTransport);

examples/Central/ScanCallback/ScanCallback.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
SPIClass SpiHCI(PC3, PD3, PD1);
2020
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
2121
BLELocalDevice BLE(&HCISpiTransport);
22-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
23-
/* B-L475E-IOT01A1 */
22+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
23+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A */
2424
SPIClass SpiHCI(PC12, PC11, PC10);
2525
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
2626
BLELocalDevice BLE(&HCISpiTransport);

examples/Central/SensorTagButton/SensorTagButton.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
SPIClass SpiHCI(PC3, PD3, PD1);
2222
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
2323
BLELocalDevice BLE(&HCISpiTransport);
24-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
25-
/* B-L475E-IOT01A1 */
24+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
25+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A */
2626
SPIClass SpiHCI(PC12, PC11, PC10);
2727
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
2828
BLELocalDevice BLE(&HCISpiTransport);

examples/Peripheral/ButtonLED/ButtonLED.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ SPIClass SpiHCI(PC3, PD3, PD1);
2323
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
2424
BLELocalDevice BLE(&HCISpiTransport);
2525
const int buttonPin = PG1; // set buttonPin to digital pin PG1
26-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
27-
/* B-L475E-IOT01A1 */
26+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
27+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A */
2828
SPIClass SpiHCI(PC12, PC11, PC10);
2929
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
3030
BLELocalDevice BLE(&HCISpiTransport);

examples/Peripheral/CallbackLED/CallbackLED.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
SPIClass SpiHCI(PC3, PD3, PD1);
2323
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
2424
BLELocalDevice BLE(&HCISpiTransport);
25-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
26-
/* B-L475E-IOT01A1 */
25+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
26+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A */
2727
SPIClass SpiHCI(PC12, PC11, PC10);
2828
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
2929
BLELocalDevice BLE(&HCISpiTransport);

examples/Peripheral/LED/LED.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
characteristic to control an LED.
66
77
The circuit:
8-
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
8+
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, B_L4S5I_IOT01A, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
99
1010
You can use a generic BLE central app, like LightBlue (iOS and Android) or
1111
nRF Connect (Android), to interact with the services and characteristics
@@ -20,8 +20,8 @@
2020
SPIClass SpiHCI(PC3, PD3, PD1);
2121
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_1S, PD0, PD4, PA8, 1000000, SPI_MODE1);
2222
BLELocalDevice BLE(&HCISpiTransport);
23-
#elif defined(ARDUINO_DISCO_L475VG_IOT)
24-
/* B-L475E-IOT01A1 */
23+
#elif defined(ARDUINO_DISCO_L475VG_IOT) || defined(ARDUINO_B_L4S5I_IOT01A)
24+
/* B-L475E-IOT01A1 or B_L4S5I_IOT01A */
2525
SPIClass SpiHCI(PC12, PC11, PC10);
2626
HCISpiTransportClass HCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8, 8000000, SPI_MODE0);
2727
BLELocalDevice BLE(&HCISpiTransport);

0 commit comments

Comments
 (0)