Fix Particle and refine build names
This commit is contained in:
		| @@ -251,7 +251,7 @@ void led_state(uint32_t state) | ||||
|     } else if (temp_color_active) { | ||||
|         final_color = (uint8_t*)&rgb_color; | ||||
|     } | ||||
|     #if LED_NEOPIXEL || defined(LED_RGB_RED) | ||||
|     #if LED_NEOPIXEL || defined(LED_RGB_RED_PIN) | ||||
|     if (final_color != NULL) { | ||||
|         neopixel_write(final_color); | ||||
|     } | ||||
| @@ -375,6 +375,9 @@ void neopixel_teardown(void) | ||||
| { | ||||
|   uint8_t grb[3] = { 0, 0, 0 }; | ||||
|   neopixel_write(grb); | ||||
|   nrf_gpio_cfg_default(LED_RGB_RED_PIN); | ||||
|   nrf_gpio_cfg_default(LED_RGB_GREEN_PIN); | ||||
|   nrf_gpio_cfg_default(LED_RGB_BLUE_PIN); | ||||
| } | ||||
|  | ||||
| // write 3 bytes color to a built-in neopixel | ||||
|   | ||||
| @@ -47,6 +47,12 @@ | ||||
| // The secondary LED, when available, is usually blue. | ||||
| #define LED_SECONDARY 1 | ||||
|  | ||||
| // Its more common for LEDs to be sinking to the MCU pin. Setting is only for individual LEDs, not | ||||
| // RGB LEDs. | ||||
| #ifndef LED_STATE_ON | ||||
| #define LED_STATE_ON   0 | ||||
| #endif | ||||
|  | ||||
| // Internal status colors are masked by this brightness setting. | ||||
| #ifndef BOARD_RGB_BRIGHTNESS | ||||
| #define BOARD_RGB_BRIGHTNESS 0x101010 | ||||
|   | ||||
| @@ -44,11 +44,13 @@ | ||||
|  *------------------------------------------------------------------*/ | ||||
| #define LEDS_NUMBER    1 | ||||
| #define LED_PRIMARY_PIN           _PINNUM(1, 12) | ||||
| #define LED_STATE_ON   0 | ||||
| #define LED_STATE_ON   1 | ||||
|  | ||||
| #define LED_RGB_RED_PIN           _PINNUM(0, 13) | ||||
| #define LED_RGB_GREEN_PIN         _PINNUM(0, 14) | ||||
| #define LED_RGB_BLUE_PIN          _PINNUM(0, 15) | ||||
| #define BOARD_RGB_BRIGHTNESS 0x202020 | ||||
|  | ||||
| /*------------------------------------------------------------------*/ | ||||
| /* BUTTON | ||||
|  *------------------------------------------------------------------*/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user