Prusa MINI Firmware overview
leds.h File Reference
#include "../../inc/MarlinConfigPre.h"
#include <string.h>

Go to the source code of this file.

Classes

struct  LEDColor
 
class  LEDLights
 

Macros

#define HAS_WHITE_LED   EITHER(RGBW_LED, NEOPIXEL_LED)
 
#define MakeLEDColor(R, G, B, W, I)   LEDColor(R, G, B)
 
#define LEDColorOff()   LEDColor( 0, 0, 0)
 
#define LEDColorRed()   LEDColor(255, 0, 0)
 
#define LEDColorOrange()   LEDColor(255, 80, 0)
 
#define LEDColorYellow()   LEDColor(255, 255, 0)
 
#define LEDColorGreen()   LEDColor( 0, 255, 0)
 
#define LEDColorBlue()   LEDColor( 0, 0, 255)
 
#define LEDColorIndigo()   LEDColor( 0, 255, 255)
 
#define LEDColorViolet()   LEDColor(255, 0, 255)
 
#define LEDColorWhite()   LEDColor(255, 255, 255)
 

Typedefs

typedef struct LEDColor LEDColor
 

Variables

LEDLights leds
 

Macro Definition Documentation

◆ HAS_WHITE_LED

#define HAS_WHITE_LED   EITHER(RGBW_LED, NEOPIXEL_LED)

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. leds.h - Marlin general RGB LED support

◆ MakeLEDColor

#define MakeLEDColor (   R,
  G,
  B,
  W,
 
)    LEDColor(R, G, B)

Color helpers and presets

◆ LEDColorOff

#define LEDColorOff ( )    LEDColor( 0, 0, 0)

◆ LEDColorRed

#define LEDColorRed ( )    LEDColor(255, 0, 0)

◆ LEDColorOrange

#define LEDColorOrange ( )    LEDColor(255, 80, 0)

◆ LEDColorYellow

#define LEDColorYellow ( )    LEDColor(255, 255, 0)

◆ LEDColorGreen

#define LEDColorGreen ( )    LEDColor( 0, 255, 0)

◆ LEDColorBlue

#define LEDColorBlue ( )    LEDColor( 0, 0, 255)

◆ LEDColorIndigo

#define LEDColorIndigo ( )    LEDColor( 0, 255, 255)

◆ LEDColorViolet

#define LEDColorViolet ( )    LEDColor(255, 0, 255)

◆ LEDColorWhite

#define LEDColorWhite ( )    LEDColor(255, 255, 255)

Typedef Documentation

◆ LEDColor

typedef struct LEDColor LEDColor

LEDcolor type for use with leds.set_color

Variable Documentation

◆ leds

LEDLights leds