aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/issi/is31fl3741.c5
-rw-r--r--drivers/ws2812.h4
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/issi/is31fl3741.c b/drivers/issi/is31fl3741.c
index 45d2b4099..ab4b31465 100644
--- a/drivers/issi/is31fl3741.c
+++ b/drivers/issi/is31fl3741.c
@@ -24,7 +24,6 @@
24#include "i2c_master.h" 24#include "i2c_master.h"
25#include "progmem.h" 25#include "progmem.h"
26 26
27
28// This is a 7-bit address, that gets left-shifted and bit 0 27// This is a 7-bit address, that gets left-shifted and bit 0
29// set to 0 for write, 1 for read (as per I2C protocol) 28// set to 0 for write, 1 for read (as per I2C protocol)
30// The address will vary depending on your wiring: 29// The address will vary depending on your wiring:
@@ -178,9 +177,9 @@ void IS31FL3741_init(uint8_t addr) {
178 // Set Pull up & Down for SWx CSy 177 // Set Pull up & Down for SWx CSy
179 IS31FL3741_write_register(addr, ISSI_REG_PULLDOWNUP, 0x77); 178 IS31FL3741_write_register(addr, ISSI_REG_PULLDOWNUP, 0x77);
180 179
181// IS31FL3741_update_led_scaling_registers(addr, 0xFF, 0xFF, 0xFF); 180 // IS31FL3741_update_led_scaling_registers(addr, 0xFF, 0xFF, 0xFF);
182 181
183// Wait 10ms to ensure the device has woken up. 182 // Wait 10ms to ensure the device has woken up.
184 wait_ms(10); 183 wait_ms(10);
185} 184}
186 185
diff --git a/drivers/ws2812.h b/drivers/ws2812.h
index 370b14f3e..f179fcb0e 100644
--- a/drivers/ws2812.h
+++ b/drivers/ws2812.h
@@ -18,12 +18,12 @@
18#include "quantum/color.h" 18#include "quantum/color.h"
19 19
20/* 20/*
21 * Older WS2812s can handle a reset time (TRST) of 50us, but recent 21 * Older WS2812s can handle a reset time (TRST) of 50us, but recent
22 * component revisions require a minimum of 280us. 22 * component revisions require a minimum of 280us.
23 */ 23 */
24 24
25#if !defined(WS2812_TRST_US) 25#if !defined(WS2812_TRST_US)
26#define WS2812_TRST_US 280 26# define WS2812_TRST_US 280
27#endif 27#endif
28 28
29/* User Interface 29/* User Interface