Prusa MINI Firmware overview
Marlin_NeoPixel Class Reference

#include <neopixel.h>

Static Public Member Functions

static void init ()
 
static void set_color_startup (const uint32_t c)
 
static void set_color (const uint32_t c)
 
static void begin ()
 
static void set_pixel_color (const uint16_t n, const uint32_t c)
 
static void set_brightness (const uint8_t b)
 
static void show ()
 
static uint16_t pixels ()
 
static uint8_t brightness ()
 
static uint32_t Color (uint8_t r, uint8_t g, uint8_t b, uint8_t w)
 

Member Function Documentation

◆ init()

static void Marlin_NeoPixel::init ( )
static

◆ set_color_startup()

static void Marlin_NeoPixel::set_color_startup ( const uint32_t  c)
static

◆ set_color()

static void Marlin_NeoPixel::set_color ( const uint32_t  c)
static

◆ begin()

static void Marlin_NeoPixel::begin ( void  )
static
74  {
75  adaneo1.begin();
76  #if MULTIPLE_NEOPIXEL_TYPES
77  adaneo2.begin();
78  #endif
79  }

◆ set_pixel_color()

static void Marlin_NeoPixel::set_pixel_color ( const uint16_t  n,
const uint32_t  c 
)
static
81  {
82  adaneo1.setPixelColor(n, c);
83  #if MULTIPLE_NEOPIXEL_TYPES
84  adaneo2.setPixelColor(n, c);
85  #endif
86  }

◆ set_brightness()

static void Marlin_NeoPixel::set_brightness ( const uint8_t  b)
static
88  {
89  adaneo1.setBrightness(b);
90  #if MULTIPLE_NEOPIXEL_TYPES
91  adaneo2.setBrightness(b);
92  #endif
93  }

◆ show()

static void Marlin_NeoPixel::show ( )
static
95  {
96  adaneo1.show();
97  #if PIN_EXISTS(NEOPIXEL2)
98  #if MULTIPLE_NEOPIXEL_TYPES
99  adaneo2.show();
100  #else
101  adaneo1.setPin(NEOPIXEL2_PIN);
102  adaneo1.show();
103  adaneo1.setPin(NEOPIXEL_PIN);
104  #endif
105  #endif
106  }

◆ pixels()

static uint16_t Marlin_NeoPixel::pixels ( )
static
113 { return adaneo1.numPixels(); }

◆ brightness()

static uint8_t Marlin_NeoPixel::brightness ( )
static
114 { return adaneo1.getBrightness(); }

◆ Color()

static uint32_t Marlin_NeoPixel::Color ( uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  w 
)
static
115  {
116  return adaneo1.Color(r, g, b, w);
117  }
createSpeedLookupTable.b
list b
Definition: createSpeedLookupTable.py:30
NEOPIXEL_PIN
#define NEOPIXEL_PIN
Definition: pins_BTT_SKR_MINI_E3_V1_2.h:124