Skip to content

Commit 4270ca3

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 4270ca3

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

Diff for: examples/Central/LedControl/LedControl.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
it will remotely control the BLE Peripheral's LED, when the button is pressed or released.
77
88
The circuit:
9-
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
9+
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, B_L4S5I_IOT01A, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
1010
1111
You can use it with another board that is compatible with this library and the
1212
Peripherals -> LED example.
@@ -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);

Diff for: examples/Central/PeripheralExplorer/PeripheralExplorer.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
is found. Then connects, and discovers + prints all the peripheral's attributes.
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 it with another board that is compatible with this library and the
1111
Peripherals -> LED example.
@@ -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);

Diff for: examples/Central/Scan/Scan.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
address, local name, advertised service UUID's.
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
This example code is in the public domain.
1111
*/
@@ -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);

Diff for: examples/Central/ScanCallback/ScanCallback.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
reported for every single advertisement it makes.
88
99
The circuit:
10-
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
10+
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, B_L4S5I_IOT01A, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
1111
1212
This example code is in the public domain.
1313
*/
@@ -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);

Diff for: examples/Central/SensorTagButton/SensorTagButton.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
outputted to the Serial Monitor when one is pressed.
99
1010
The circuit:
11-
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
11+
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, B_L4S5I_IOT01A, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
1212
- TI SensorTag
1313
1414
This example code is in the public domain.
@@ -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);

Diff for: examples/Peripheral/ButtonLED/ButtonLED.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
represents the state of the button.
77
88
The circuit:
9-
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
9+
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, B_L4S5I_IOT01A, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
1010
1111
You can use a generic BLE central app, like LightBlue (iOS and Android) or
1212
nRF Connect (Android), to interact with the services and characteristics
@@ -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);

Diff for: examples/Peripheral/CallbackLED/CallbackLED.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
library are used.
77
88
The circuit:
9-
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
9+
- STEVAL-MKSBOX1V1, B-L475E-IOT01A1, B_L4S5I_IOT01A, or a Nucleo board plus the X-NUCLEO-IDB05A1 or the X-NUCLEO-BNRG2A1
1010
1111
You can use a generic BLE central app, like LightBlue (iOS and Android) or
1212
nRF Connect (Android), to interact with the services and characteristics
@@ -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);

Diff for: 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)