File tree Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Original file line number Diff line number Diff line change 4
4
5
5
This sketch provides a default example how to use BLE with:
6
6
- Discovery L475VG IoT board
7
- - X_NUCLEO_IDB05A1 (BlueNRG-MS expansion board) on top of an STM32 Nucleo board
8
7
9
8
For the Beacon Service, two modes are supported:
10
9
- UID mode, you can choose the Namespace and the ID. This data are sent
29
28
#include < SPBTLE_RF.h>
30
29
#include < beacon_service.h>
31
30
32
- /* Please uncomment one of the following config depending on board used */
33
- /* Discovery L475VG */
34
- /*
35
31
#define PIN_SPI_MOSI (PC12)
36
32
#define PIN_SPI_MISO (PC11)
37
33
#define PIN_SPI_SCK (PC10)
41
37
#define PIN_SPI_IRQ (PE6)
42
38
43
39
#define PIN_BLE_LED (LED4)
44
- */
45
- /* X_NUCLEO_IDB05A1 */
46
- /*
47
- #define PIN_SPI_MOSI (11)
48
- #define PIN_SPI_MISO (12)
49
- #define PIN_SPI_SCK (3)
50
-
51
- #define PIN_SPI_nCS (A1)
52
- #define PIN_SPI_RESET (7)
53
- #define PIN_SPI_IRQ (A0)
54
-
55
- #define PIN_BLE_LED (0xFF)
56
- */
57
40
58
41
// Configure BTLE_SPI
59
42
SPIClass BTLE_SPI (PIN_SPI_MOSI, PIN_SPI_MISO, PIN_SPI_SCK);
Original file line number Diff line number Diff line change 4
4
5
5
This sketch provides a default example how to use BLE with:
6
6
- Discovery L475VG IoT board
7
- - X_NUCLEO_IDB05A1 (BlueNRG-MS expansion board) on top of an STM32 Nucleo board
8
7
9
8
For the Sensor Service sketch, 3 services are started : Acc, Environnemental and Time.
10
9
For testing the sketch, you can download on the playstore the "BlueNRG"
24
23
#include < SPBTLE_RF.h>
25
24
#include < sensor_service.h>
26
25
27
- /* Please uncomment one of the following config depending on board used */
28
- /* Discovery L475VG */
29
- /*
30
26
#define PIN_SPI_MOSI (PC12)
31
27
#define PIN_SPI_MISO (PC11)
32
28
#define PIN_SPI_SCK (PC10)
36
32
#define PIN_SPI_IRQ (PE6)
37
33
38
34
#define PIN_BLE_LED (LED4)
39
- */
40
- /* X_NUCLEO_IDB05A1 */
41
- /*
42
- #define PIN_SPI_MOSI (11)
43
- #define PIN_SPI_MISO (12)
44
- #define PIN_SPI_SCK (3)
45
-
46
- #define PIN_SPI_nCS (A1)
47
- #define PIN_SPI_RESET (7)
48
- #define PIN_SPI_IRQ (A0)
49
-
50
- #define PIN_BLE_LED (0xFF)
51
- */
52
35
53
36
// Configure BTLE_SPI
54
37
SPIClass BTLE_SPI (PIN_SPI_MOSI, PIN_SPI_MISO, PIN_SPI_SCK);
You can’t perform that action at this time.
0 commit comments