Skip to content

Commit 3e8241d

Browse files
committed
add stm32L4+ discovery kit for BLE access of this example
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 be2ed7e commit 3e8241d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)