Refactor of lets_split_eh to enable RGB split animations (#6411)
This commit is contained in:
parent
ee8d9bd40a
commit
fadb69e203
7 changed files with 23 additions and 52 deletions
|
|
@ -16,13 +16,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/>.
|
||||
*/
|
||||
|
||||
#ifndef EH_CONFIG_H
|
||||
#define EH_CONFIG_H
|
||||
|
||||
// To let configuration know this is of type EH, which will force I2C irregardless of user config
|
||||
#define EH
|
||||
// The 'EH' only uses I2C
|
||||
#define USE_I2C
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
|
|
@ -40,10 +34,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
/* ws2812 RGB LED */
|
||||
#define RGB_DI_PIN B2
|
||||
#define RGBLED_NUM 6 // Number of LEDs (each hand)
|
||||
#define RGBLED_NUM 12 // Number of LEDs (each hand)
|
||||
#define RGBLED_SPLIT { 6, 6 }
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
|
||||
/* Split Defines */
|
||||
#define SPLIT_HAND_PIN D3
|
||||
#define SOFT_SERIAL_PIN D0
|
||||
|
||||
#endif
|
||||
|
||||
// The 'EH' has previously forced use of I2C so this default has been kept
|
||||
// however users can undef to use serial
|
||||
#define USE_I2C
|
||||
|
|
|
|||
|
|
@ -1,14 +1 @@
|
|||
#include "lets_split_eh.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
|
||||
// JTAG disable for PORT F. write JTD bit twice within four cycles.
|
||||
MCUCR |= (1<<JTD);
|
||||
MCUCR |= (1<<JTD);
|
||||
|
||||
// Undo init of RX LED, we use that port currently
|
||||
// DDRB &= ~(1<<0);
|
||||
|
||||
matrix_init_user();
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef EH_H
|
||||
#define EH_H
|
||||
#pragma once
|
||||
|
||||
#include "lets_split_eh.h"
|
||||
|
||||
|
|
@ -23,5 +22,3 @@
|
|||
}
|
||||
|
||||
#define LAYOUT_ortho_4x12 LAYOUT
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
BOOTLOADER = atmel-dfu
|
||||
|
||||
BACKLIGHT_ENABLE = yes
|
||||
RGBLIGHT_ENABLE = yes
|
||||
RGBLIGHT_ENABLE = yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue