LED Matrix: Clean up includes (#12197)
This commit is contained in:
		
							parent
							
								
									5590c40b5b
								
							
						
					
					
						commit
						f236395176
					
				
					 5 changed files with 7 additions and 13 deletions
				
			
		| 
						 | 
					@ -16,8 +16,6 @@
 | 
				
			||||||
#include "gen1.h"
 | 
					#include "gen1.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef LED_MATRIX_ENABLE
 | 
					#ifdef LED_MATRIX_ENABLE
 | 
				
			||||||
    #include "is31fl3731-simple.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
 | 
					const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
 | 
				
			||||||
/* Refer to IS31 manual for these locations
 | 
					/* Refer to IS31 manual for these locations
 | 
				
			||||||
 *    driver
 | 
					 *    driver
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,6 @@
 | 
				
			||||||
#include "terrazzo.h"
 | 
					#include "terrazzo.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef LED_MATRIX_ENABLE
 | 
					#ifdef LED_MATRIX_ENABLE
 | 
				
			||||||
    #include "is31fl3731-simple.h"
 | 
					 | 
				
			||||||
    #include <math.h>
 | 
					    #include <math.h>
 | 
				
			||||||
    #include "print.h"
 | 
					    #include "print.h"
 | 
				
			||||||
    #include "quantum.h"
 | 
					    #include "quantum.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,9 +17,6 @@
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * 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 "led_matrix.h"
 | 
				
			||||||
#include "progmem.h"
 | 
					#include "progmem.h"
 | 
				
			||||||
#include "config.h"
 | 
					#include "config.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -19,7 +19,14 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <stdint.h>
 | 
				
			||||||
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include "led_matrix_types.h"
 | 
					#include "led_matrix_types.h"
 | 
				
			||||||
 | 
					#include "quantum.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef IS31FL3731
 | 
				
			||||||
 | 
					#    include "is31fl3731-simple.h"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
enum led_matrix_effects {
 | 
					enum led_matrix_effects {
 | 
				
			||||||
    LED_MATRIX_UNIFORM_BRIGHTNESS = 1,
 | 
					    LED_MATRIX_UNIFORM_BRIGHTNESS = 1,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,9 +15,6 @@
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * 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 "led_matrix.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Each driver needs to define a struct:
 | 
					/* Each driver needs to define a struct:
 | 
				
			||||||
| 
						 | 
					@ -30,10 +27,6 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(IS31FL3731) || defined(IS31FL3733)
 | 
					#if defined(IS31FL3731) || defined(IS31FL3733)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#    if defined(IS31FL3731)
 | 
					 | 
				
			||||||
#        include "is31fl3731-simple.h"
 | 
					 | 
				
			||||||
#    endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#    include "i2c_master.h"
 | 
					#    include "i2c_master.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void init(void) {
 | 
					static void init(void) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue