Prusa MINI Firmware overview
pca9632.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 
24 /**
25  * Driver for the Philips PCA9632 LED driver.
26  * Written by Robert Mendon Feb 2017.
27  */
28 
29 struct LEDColor;
30 typedef LEDColor LEDColor;
31 
32 void pca9632_set_led_color(const LEDColor &color);
33 
34 #if ENABLED(PCA9632_BUZZER)
35  #include <stdint.h>
36  void pca9632_buzz(const long, const uint16_t);
37 #endif
LEDColor::r
uint8_t r
Definition: leds.h:42
TwoWire::beginTransmission
void beginTransmission(uint8_t)
Definition: Wire.cpp:16
I2C_ADDRESS
#define I2C_ADDRESS(A)
Definition: macros.h:292
pca9632.h
data
uint8_t data[8]
Definition: masstorage.h:49
leds.h
Wire.h
LEDColor::b
uint8_t b
Definition: leds.h:42
LEDColor
Definition: leds.h:41
TwoWire::write
virtual size_t write(uint8_t)
Definition: Wire.cpp:32
Wire
TwoWire Wire
Definition: Wire.cpp:60
TwoWire::read
virtual int read(void)
Definition: Wire.cpp:49
TwoWire::begin
void begin(void)
Definition: Wire.cpp:13
uint8_t
const uint8_t[]
Definition: 404_html.c:3
LEDColor
LEDColor LEDColor
Definition: pca9632.h:29
TwoWire::endTransmission
uint8_t endTransmission(void)
Definition: Wire.cpp:20
LED_PWM
#define LED_PWM
Definition: pins_GTM32_PRO_VB.h:128
LEDColor::g
uint8_t g
Definition: leds.h:42
pca9632_set_led_color
void pca9632_set_led_color(const LEDColor &color)