28
28
#include < HTS221Sensor.h>
29
29
#include < LPS25HBSensor.h>
30
30
31
- #define PIN_LED_GRN (13 )
32
- #define PIN_SPI_MOSI (11 )
33
- #define PIN_SPI_MISO (12 )
34
- #define PIN_SPI_SCK (3 )
31
+ #define PIN_SENSIBLE_LED_GRN (13 )
32
+ #define PIN_BLE_SPI_MOSI (11 )
33
+ #define PIN_BLE_SPI_MISO (12 )
34
+ #define PIN_BLE_SPI_SCK (3 )
35
35
36
- #define PIN_SPI_nCS (A1)
37
- #define PIN_SPI_RESET (7 )
38
- #define PIN_SPI_IRQ (A0)
36
+ #define PIN_BLE_SPI_nCS (A1)
37
+ #define PIN_BLE_SPI_RESET (7 )
38
+ #define PIN_BLE_SPI_IRQ (A0)
39
39
40
40
#define PIN_BLE_LED (0xFF )
41
41
42
42
#define SerialPort Serial
43
43
#define DEV_I2C Wire
44
44
45
45
// Configure BTLE_SPI
46
- SPIClass BTLE_SPI (PIN_SPI_MOSI, PIN_SPI_MISO, PIN_SPI_SCK );
46
+ SPIClass BTLE_SPI (PIN_BLE_SPI_MOSI, PIN_BLE_SPI_MISO, PIN_BLE_SPI_SCK );
47
47
48
48
// Configure BTLE pins
49
- SPBTLERFClass BTLE (&BTLE_SPI, PIN_SPI_nCS, PIN_SPI_IRQ, PIN_SPI_RESET , PIN_BLE_LED);
49
+ SPBTLERFClass BTLE (&BTLE_SPI, PIN_BLE_SPI_nCS, PIN_BLE_SPI_IRQ, PIN_BLE_SPI_RESET , PIN_BLE_LED);
50
50
51
51
const char *name = " BlueNRG" ;
52
52
uint8_t SERVER_BDADDR[] = {0x12 , 0x34 , 0x00 , 0xE1 , 0x80 , 0x03 };
@@ -72,7 +72,7 @@ uint32_t printSkipCnt = 0;
72
72
void setup () {
73
73
int ret;
74
74
75
- pinMode (PIN_LED_GRN , OUTPUT);
75
+ pinMode (PIN_SENSIBLE_LED_GRN , OUTPUT);
76
76
77
77
SerialPort.begin (115200 );
78
78
@@ -238,19 +238,19 @@ void Led_Blink()
238
238
if (millis () - prevLedMsec > 1000 )
239
239
{
240
240
prevLedMsec = millis ();
241
- digitalWrite (PIN_LED_GRN , HIGH);
241
+ digitalWrite (PIN_SENSIBLE_LED_GRN , HIGH);
242
242
delay (10 );
243
- digitalWrite (PIN_LED_GRN , LOW);
243
+ digitalWrite (PIN_SENSIBLE_LED_GRN , LOW);
244
244
}
245
245
}
246
246
else
247
247
{
248
248
if (millis () - prevLedMsec > 300 )
249
249
{
250
250
prevLedMsec = millis ();
251
- digitalWrite (PIN_LED_GRN , HIGH);
251
+ digitalWrite (PIN_SENSIBLE_LED_GRN , HIGH);
252
252
delay (10 );
253
- digitalWrite (PIN_LED_GRN , LOW);
253
+ digitalWrite (PIN_SENSIBLE_LED_GRN , LOW);
254
254
}
255
255
}
256
256
}
0 commit comments