M150 I to set Neopixel by index (#18490)

This commit is contained in:
ellensp
2020-07-04 09:33:09 +12:00
committed by GitHub
parent bb89e33e24
commit 91dc74ff16
3 changed files with 29 additions and 10 deletions

View File

@@ -65,6 +65,7 @@ private:
, adaneo2
#endif
;
static int8_t neoindex;
public:
static void init();
@@ -72,6 +73,9 @@ public:
static void set_color(const uint32_t c);
FORCE_INLINE static void set_neo_index(const int8_t neoIndex) { neoindex = neoIndex; }
FORCE_INLINE static int8_t get_neo_index() { return neoindex; }
#ifdef NEOPIXEL_BKGD_LED_INDEX
static void set_color_background();
#endif