RadiantRVA
/
rbVectorIQ
share for RS
Fork of rbVectorIQ by
Diff: main.cpp
- Revision:
- 5:1f6311e0fc14
- Parent:
- 4:c8515fbd2e44
- Child:
- 6:074f5ec7428c
--- a/main.cpp Mon Nov 28 15:38:58 2016 +0000 +++ b/main.cpp Fri Dec 02 14:33:16 2016 +0000 @@ -53,7 +53,7 @@ #define PATTERN_RAINBOW 0x06 #define PATTERN_CANDY 0x07 #define PATTERN_SNOW 0x08 -#define PATTERN_ICE 0x09 +#define PATTERN_XMAS 0x09 #define LEDS_ON 0x01 #define LEDS_OFF 0x02 @@ -99,6 +99,7 @@ void candyChase(int wait, uint8_t numLEDs, neopixel_strip_t m_strip); void snowflakes(int wait, uint8_t numLEDs, neopixel_strip_t m_strip); void iceflakes(int delay, uint8_t numLEDs, neopixel_strip_t m_strip); +void xmas(int delay, uint8_t numLEDs, neopixel_strip_t m_strip); extern uint32_t ble_radio_notification_init(nrf_app_irq_priority_t irq_priority, nrf_radio_notification_distance_t distance, @@ -226,8 +227,8 @@ else if (pattern == PATTERN_SNOW) snowflakes(100, NUM_LEDS, m_strip); - else if (pattern == PATTERN_ICE) - iceflakes(100, NUM_LEDS, m_strip); + else if (pattern == PATTERN_XMAS) + xmas(200, NUM_LEDS, m_strip); } } @@ -266,7 +267,7 @@ ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED); ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED); ble.accumulateAdvertisingPayload(GapAdvertisingData::SHORTENED_LOCAL_NAME, - (const uint8_t *)"rbCBand", sizeof("rbCBand") - 1); + (const uint8_t *)"rbCtrl02", sizeof("rbCtrl02") - 1); ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS, (const uint8_t *)uart_base_uuid_rev, sizeof(uart_base_uuid)); // 100ms; in multiples of 0.625ms.