Prusa MINI Firmware overview
|
Go to the documentation of this file.
32 #include "../../inc/MarlinConfig.h"
34 #include <Adafruit_NeoPixel.h>
41 #define MULTIPLE_NEOPIXEL_TYPES (defined(NEOPIXEL2_TYPE) && (NEOPIXEL2_TYPE != NEOPIXEL_TYPE))
43 #define NEOPIXEL_IS_RGB (NEOPIXEL_TYPE == NEO_RGB || NEOPIXEL_TYPE == NEO_RBG || NEOPIXEL_TYPE == NEO_GRB || NEOPIXEL_TYPE == NEO_GBR || NEOPIXEL_TYPE == NEO_BRG || NEOPIXEL_TYPE == NEO_BGR)
44 #define NEOPIXEL_IS_RGBW !NEOPIXEL_IS_RGB
47 #define NEO_WHITE 255, 255, 255, 0
49 #define NEO_WHITE 0, 0, 0, 255
58 static Adafruit_NeoPixel adaneo1
59 #if MULTIPLE_NEOPIXEL_TYPES
70 #ifdef NEOPIXEL_BKGD_LED_INDEX
71 static void set_color_background();
76 #if MULTIPLE_NEOPIXEL_TYPES
82 adaneo1.setPixelColor(n, c);
83 #if MULTIPLE_NEOPIXEL_TYPES
84 adaneo2.setPixelColor(n, c);
89 adaneo1.setBrightness(
b);
90 #if MULTIPLE_NEOPIXEL_TYPES
91 adaneo2.setBrightness(
b);
95 static inline void show() {
97 #if PIN_EXISTS(NEOPIXEL2)
98 #if MULTIPLE_NEOPIXEL_TYPES
101 adaneo1.setPin(NEOPIXEL2_PIN);
113 static inline uint16_t
pixels() {
return adaneo1.numPixels(); }
116 return adaneo1.Color(r, g,
b, w);
static uint32_t Color(uint8_t r, uint8_t g, uint8_t b, uint8_t w)
Definition: neopixel.h:115
static void set_brightness(const uint8_t b)
Definition: neopixel.h:88
static void begin()
Definition: neopixel.h:74
static void set_color_startup(const uint32_t c)
static void set_pixel_color(const uint16_t n, const uint32_t c)
Definition: neopixel.h:81
uint8_t i
Definition: screen_test_graph.c:72
static uint16_t pixels()
Definition: neopixel.h:113
#define SET_OUTPUT(IO)
Definition: fastio.h:101
Definition: neopixel.h:56
static uint8_t brightness()
Definition: neopixel.h:114
static void show()
Definition: neopixel.h:95
const uint8_t[]
Definition: 404_html.c:3
void safe_delay(millis_t ms)
Definition: utility.cpp:28
png_structrp png_const_color_16p background_color
Definition: png.h:1302
list b
Definition: createSpeedLookupTable.py:30
static void set_color(const uint32_t c)
#define NEOPIXEL_PIN
Definition: pins_BTT_SKR_MINI_E3_V1_2.h:124