Skip to content

Commit a139ee4

Browse files
thinkyheadOmkar Dhekne
authored andcommitted
🎨 Tweak NEOPIXEL_LED format (MarlinFirmware#24110)
1 parent 571d11b commit a139ee4

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

Marlin/Configuration.h

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2934,30 +2934,31 @@
29342934
// Support for Adafruit NeoPixel LED driver
29352935
//#define NEOPIXEL_LED
29362936
#if ENABLED(NEOPIXEL_LED)
2937-
#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
2938-
//#define NEOPIXEL_PIN 4 // LED driving pin
2939-
//#define NEOPIXEL2_TYPE NEOPIXEL_TYPE
2940-
//#define NEOPIXEL2_PIN 5
2941-
#define NEOPIXEL_PIXELS 30 // Number of LEDs in the strip. (Longest strip when NEOPIXEL2_SEPARATE is disabled.)
2942-
#define NEOPIXEL_IS_SEQUENTIAL // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.
2943-
#define NEOPIXEL_BRIGHTNESS 127 // Initial brightness (0-255)
2944-
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
2937+
#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW, NEO_RGBW, NEO_GRB, NEO_RBG, etc.
2938+
// See https://github.com/adafruit/Adafruit_NeoPixel/blob/master/Adafruit_NeoPixel.h
2939+
//#define NEOPIXEL_PIN 4 // LED driving pin
2940+
//#define NEOPIXEL2_TYPE NEOPIXEL_TYPE
2941+
//#define NEOPIXEL2_PIN 5
2942+
#define NEOPIXEL_PIXELS 30 // Number of LEDs in the strip. (Longest strip when NEOPIXEL2_SEPARATE is disabled.)
2943+
#define NEOPIXEL_IS_SEQUENTIAL // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.
2944+
#define NEOPIXEL_BRIGHTNESS 127 // Initial brightness (0-255)
2945+
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
29452946

29462947
// Support for second Adafruit NeoPixel LED driver controlled with M150 S1 ...
29472948
//#define NEOPIXEL2_SEPARATE
29482949
#if ENABLED(NEOPIXEL2_SEPARATE)
2949-
#define NEOPIXEL2_PIXELS 15 // Number of LEDs in the second strip
2950-
#define NEOPIXEL2_BRIGHTNESS 127 // Initial brightness (0-255)
2951-
#define NEOPIXEL2_STARTUP_TEST // Cycle through colors at startup
2950+
#define NEOPIXEL2_PIXELS 15 // Number of LEDs in the second strip
2951+
#define NEOPIXEL2_BRIGHTNESS 127 // Initial brightness (0-255)
2952+
#define NEOPIXEL2_STARTUP_TEST // Cycle through colors at startup
29522953
#else
2953-
//#define NEOPIXEL2_INSERIES // Default behavior is NeoPixel 2 in parallel
2954+
//#define NEOPIXEL2_INSERIES // Default behavior is NeoPixel 2 in parallel
29542955
#endif
29552956

29562957
// Use some of the NeoPixel LEDs for static (background) lighting
2957-
//#define NEOPIXEL_BKGD_INDEX_FIRST 0 // Index of the first background LED
2958-
//#define NEOPIXEL_BKGD_INDEX_LAST 5 // Index of the last background LED
2958+
//#define NEOPIXEL_BKGD_INDEX_FIRST 0 // Index of the first background LED
2959+
//#define NEOPIXEL_BKGD_INDEX_LAST 5 // Index of the last background LED
29592960
//#define NEOPIXEL_BKGD_COLOR { 255, 255, 255, 0 } // R, G, B, W
2960-
//#define NEOPIXEL_BKGD_ALWAYS_ON // Keep the backlight on when other NeoPixels are off
2961+
//#define NEOPIXEL_BKGD_ALWAYS_ON // Keep the backlight on when other NeoPixels are off
29612962
#endif
29622963

29632964
/**

0 commit comments

Comments
 (0)