Update keyboard LED driver configs (#22638)
This commit is contained in:
		
							parent
							
								
									62db54dc32
								
							
						
					
					
						commit
						b9e81c0691
					
				
					 240 changed files with 248 additions and 246 deletions
				
			
		|  | @ -13,7 +13,7 @@ | |||
|  * You should have received a copy of the GNU General Public License | ||||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | ||||
|  */ | ||||
| #include "is31fl3218.h" | ||||
| #include "is31fl3218-simple.h" | ||||
| #include <string.h> | ||||
| #include "i2c_master.h" | ||||
| 
 | ||||
|  |  | |||
|  | @ -43,7 +43,7 @@ | |||
| #endif | ||||
| 
 | ||||
| #ifndef IS31FL3733_CS_PULLDOWN | ||||
| #    define IS31FL3733_CSPULLDOWN IS31FL3733_PDR_0_OHM | ||||
| #    define IS31FL3733_CS_PULLDOWN IS31FL3733_PDR_0_OHM | ||||
| #endif | ||||
| 
 | ||||
| #ifndef IS31FL3733_GLOBAL_CURRENT | ||||
|  |  | |||
|  | @ -139,7 +139,7 @@ void is31fl3736_init(uint8_t addr) { | |||
|     // Set up the mode and other settings, clear the PWM registers,
 | ||||
|     // then disable software shutdown.
 | ||||
| 
 | ||||
|     is31fl3736_select_page(addr, IS31FL3736_REG_LED_CONTROL); | ||||
|     is31fl3736_select_page(addr, IS31FL3736_COMMAND_LED_CONTROL); | ||||
| 
 | ||||
|     // Turn off all LEDs.
 | ||||
|     for (int i = 0; i < IS31FL3736_LED_CONTROL_REGISTER_COUNT; i++) { | ||||
|  |  | |||
|  | @ -23,6 +23,7 @@ | |||
| #include "wait.h" | ||||
| 
 | ||||
| #define IS31FL3741_PWM_REGISTER_COUNT 351 | ||||
| #define IS31FL3741_SCALING_REGISTER_COUNT 351 | ||||
| 
 | ||||
| #ifndef IS31FL3741_I2C_TIMEOUT | ||||
| #    define IS31FL3741_I2C_TIMEOUT 100 | ||||
|  | @ -64,7 +65,7 @@ uint8_t g_pwm_buffer[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | |||
| bool    g_pwm_buffer_update_required[IS31FL3741_DRIVER_COUNT]        = {false}; | ||||
| bool    g_scaling_registers_update_required[IS31FL3741_DRIVER_COUNT] = {false}; | ||||
| 
 | ||||
| uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | ||||
| uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_SCALING_REGISTER_COUNT]; | ||||
| 
 | ||||
| void is31fl3741_write_register(uint8_t addr, uint8_t reg, uint8_t data) { | ||||
|     i2c_transfer_buffer[0] = reg; | ||||
|  |  | |||
|  | @ -23,6 +23,7 @@ | |||
| #include "wait.h" | ||||
| 
 | ||||
| #define IS31FL3741_PWM_REGISTER_COUNT 351 | ||||
| #define IS31FL3741_SCALING_REGISTER_COUNT 351 | ||||
| 
 | ||||
| #ifndef IS31FL3741_I2C_TIMEOUT | ||||
| #    define IS31FL3741_I2C_TIMEOUT 100 | ||||
|  | @ -64,7 +65,7 @@ uint8_t g_pwm_buffer[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | |||
| bool    g_pwm_buffer_update_required[IS31FL3741_DRIVER_COUNT]        = {false}; | ||||
| bool    g_scaling_registers_update_required[IS31FL3741_DRIVER_COUNT] = {false}; | ||||
| 
 | ||||
| uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | ||||
| uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_SCALING_REGISTER_COUNT]; | ||||
| 
 | ||||
| void is31fl3741_write_register(uint8_t addr, uint8_t reg, uint8_t data) { | ||||
|     i2c_transfer_buffer[0] = reg; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ryan
						Ryan