Prusa MINI Firmware overview
caselight.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
25 extern bool case_light_on;
26 extern uint8_t case_light_brightness_sav; // saves brighness info when case_light_on is false
27 extern bool case_light_arg_flag; // flag to notify if S or P argument type
28 
29 void update_case_light();
LEDLights::set_color
static void set_color(const LEDColor &color)
MakeLEDColor
#define MakeLEDColor(R, G, B, W, I)
Definition: leds.h:124
INVERT_CASE_LIGHT
#define INVERT_CASE_LIGHT
Definition: caselight.cpp:51
LEDColor::r
uint8_t r
Definition: leds.h:42
LOW
#define LOW
Definition: wiring_constants.h:70
case_light_brightness
uint8_t case_light_brightness
Definition: caselight.cpp:27
i
uint8_t i
Definition: screen_test_graph.c:72
leds.h
map
long map(long x, long in_min, long in_max, long out_min, long out_max)
Definition: WMath.cpp:49
case_light_brightness_sav
uint8_t case_light_brightness_sav
Definition: caselight.cpp:47
PWM_PIN
bool PWM_PIN(const pin_t p)
LEDColor::b
uint8_t b
Definition: leds.h:42
LEDColor
Definition: leds.h:41
pin_t
int8_t pin_t
Definition: HAL.h:65
update_case_light
void update_case_light()
Definition: caselight.cpp:54
case_light_on
bool case_light_on
Definition: caselight.cpp:28
CASE_LIGHT_PIN
#define CASE_LIGHT_PIN
Definition: pins_GT2560_V3.h:144
WRITE
#define WRITE(IO, V)
Definition: fastio.h:96
uint8_t
const uint8_t[]
Definition: 404_html.c:3
update_case_light
void update_case_light()
Definition: caselight.cpp:54
HIGH
#define HIGH
Definition: wiring_constants.h:71
leds
LEDLights leds
case_light_arg_flag
bool case_light_arg_flag
Definition: caselight.cpp:48
case_light_brightness
uint8_t case_light_brightness
Definition: caselight.cpp:27
case_light_brightness_sav
uint8_t case_light_brightness_sav
Definition: caselight.cpp:47
case_light_on
bool case_light_on
Definition: caselight.cpp:28
LEDColor::g
uint8_t g
Definition: leds.h:42
case_light_arg_flag
bool case_light_arg_flag
Definition: caselight.cpp:48
analogWrite
void analogWrite(uint32_t ulPin, uint32_t ulValue)
Definition: wiring_analog.c:12