Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED Matrix: Clean up includes #12197

Merged
merged 1 commit into from
Mar 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions keyboards/clueboard/66_hotswap/gen1/gen1.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include "gen1.h"

#ifdef LED_MATRIX_ENABLE
#include "is31fl3731-simple.h"

const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
/* Refer to IS31 manual for these locations
* driver
Expand Down
1 change: 0 additions & 1 deletion keyboards/terrazzo/terrazzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "terrazzo.h"

#ifdef LED_MATRIX_ENABLE
#include "is31fl3731-simple.h"
#include <math.h>
#include "print.h"
#include "quantum.h"
Expand Down
3 changes: 0 additions & 3 deletions quantum/led_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <stdint.h>
#include <stdbool.h>
#include "quantum.h"
#include "led_matrix.h"
#include "progmem.h"
#include "config.h"
Expand Down
7 changes: 7 additions & 0 deletions quantum/led_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@

#pragma once

#include <stdint.h>
#include <stdbool.h>
#include "led_matrix_types.h"
#include "quantum.h"

#ifdef IS31FL3731
# include "is31fl3731-simple.h"
#endif

enum led_matrix_effects {
LED_MATRIX_UNIFORM_BRIGHTNESS = 1,
Expand Down
7 changes: 0 additions & 7 deletions quantum/led_matrix_drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <stdint.h>
#include <stdbool.h>
#include "quantum.h"
#include "led_matrix.h"

/* Each driver needs to define a struct:
Expand All @@ -30,10 +27,6 @@

#if defined(IS31FL3731) || defined(IS31FL3733)

# if defined(IS31FL3731)
# include "is31fl3731-simple.h"
# endif

# include "i2c_master.h"

static void init(void) {
Expand Down