Migrate rgblight.pin
and RGB_DI_PIN
to ws2812.pin
(#20303)
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
|
||||
//rgb light setting
|
||||
#define RGBLED_NUM 18
|
||||
#define RGB_DI_PIN D7
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
|
@@ -8,6 +8,9 @@
|
||||
"pid": "0x00BE",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D7"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layout_aliases": {
|
||||
|
@@ -14,8 +14,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#undef RGB_DI_PIN
|
||||
#define RGB_DI_PIN RGB_INDICATOR_PIN
|
||||
#undef WS2812_DI_PIN
|
||||
#define WS2812_DI_PIN RGB_INDICATOR_PIN
|
||||
#define ws2812_setleds indicator_setleds
|
||||
#define ws2812_setleds_pin indicator_setleds_pin
|
||||
#include "ws2812_bitbang.c"
|
||||
|
Reference in New Issue
Block a user