forked from mfulz_github/qmk_firmware
		
	[Keymap] HS60 v2 keymap updates (#5250)
* Add backlight controls * Add backlight controls and remove RGB underglow * Make HS60 board specific changes to readme * Remove BL_TOGG as it isn't use on this board
This commit is contained in:
		
							parent
							
								
									5838c458d7
								
							
						
					
					
						commit
						7a89b39aad
					
				@ -1,25 +1,2 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2019 Stanrc85
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
This program is free software: you can redistribute it and/or modify
 | 
					 | 
				
			||||||
it under the terms of the GNU General Public License as published by
 | 
					 | 
				
			||||||
the Free Software Foundation, either version 2 of the License, or
 | 
					 | 
				
			||||||
(at your option) any later version.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
This program is distributed in the hope that it will be useful,
 | 
					 | 
				
			||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
					 | 
				
			||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
					 | 
				
			||||||
GNU General Public License for more details.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
You should have received a copy of the GNU General Public License
 | 
					 | 
				
			||||||
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
#pragma once
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Include overwrites for specific keymap */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#define HS60_ANSI
 | 
					 | 
				
			||||||
#undef  PRODUCT_ID
 | 
					 | 
				
			||||||
#define PRODUCT_ID      0x4854
 | 
					 | 
				
			||||||
#define TAPPING_TERM 200
 | 
					#define TAPPING_TERM 200
 | 
				
			||||||
#define RETRO_TAPPING
 | 
					#define RETRO_TAPPING
 | 
				
			||||||
 | 
				
			|||||||
@ -64,13 +64,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
				
			|||||||
		_______, _______, _______,                   _______,                   _______, _______, _______, _______),
 | 
							_______, _______, _______,                   _______,                   _______, _______, _______, _______),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	[3] = LAYOUT_60_ansi(
 | 
						[3] = LAYOUT_60_ansi(
 | 
				
			||||||
		_______, RGB_TOG, RGB_MOD, RGB_VAD, RGB_VAI, RGB_SAI, RGB_HUD, RGB_HUI, _______, _______, _______, _______, _______, _______,
 | 
							_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
 | 
				
			||||||
		_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
 | 
							_______, EF_INC,  ES_INC,  S1_INC,  H1_INC,  S2_INC,  H2_INC,  BR_INC,  _______, _______, _______, _______, _______, RESET,
 | 
				
			||||||
		_______, _______, _______, TG(1),   _______, _______, _______, _______, _______, _______, _______, _______, _______,
 | 
							TG(1),   EF_DEC,  ES_DEC,  S1_DEC,  H1_DEC,  S2_DEC,  H2_DEC,  BR_DEC,  _______, _______, _______, _______, _______,
 | 
				
			||||||
		_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
 | 
							_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
 | 
				
			||||||
		_______, _______, _______,                   _______,                   _______, _______, _______, _______)
 | 
							_______, _______, _______,                   _______,                   _______, _______, _______, _______)
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Backlight specific keys:
 | 
				
			||||||
 | 
					//  EF_INC, EF_DEC,   // next/previous backlight effect
 | 
				
			||||||
 | 
					//  H1_INC, H1_DEC,   // Color 1 hue increase/decrease
 | 
				
			||||||
 | 
					//  S1_INC, S1_DEC,   // Color 1 saturation increase/decrease
 | 
				
			||||||
 | 
					//  H2_INC, H2_DEC,   // Color 2 hue increase/decrease
 | 
				
			||||||
 | 
					//  S2_INC, S2_DEC,   // Color 2 saturation increase/decrease
 | 
				
			||||||
 | 
					//  BR_INC, BR_DEC,   // backlight brightness increase/decrease
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
					bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
				
			||||||
  return true;
 | 
					  return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,48 @@
 | 
				
			|||||||
The default keymap for ANSI HS60 V2
 | 
					<!-- Copyright 2019 Stanrc85
 | 
				
			||||||
===================================
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					This program is free software: you can redistribute it and/or modify
 | 
				
			||||||
 | 
					it under the terms of the GNU General Public License as published by
 | 
				
			||||||
 | 
					the Free Software Foundation, either version 2 of the License, or
 | 
				
			||||||
 | 
					(at your option) any later version.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Default layer is normal ANSI and Fn layer is used for RGB functions, Volume control and arrow cluster
 | 
					This program is distributed in the hope that it will be useful,
 | 
				
			||||||
 | 
					but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
				
			||||||
 | 
					MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
				
			||||||
 | 
					GNU General Public License for more details.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					You should have received a copy of the GNU General Public License
 | 
				
			||||||
 | 
					along with this program.  If not, see <http://www.gnu.org/licenses/>.-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Stanrc85's Standard ANSI 60% Layout
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Keymap Notes
 | 
				
			||||||
 | 
					- Layer 0 is default QWERTY layout with additional custom features:
 | 
				
			||||||
 | 
					    - SpaceFN to function layer 2 on `Space`
 | 
				
			||||||
 | 
					    - `CTRL` when held and `ESC` when tapped on `CAPS LOCK`
 | 
				
			||||||
 | 
					    - Tap Dance on `Fn1` for `CTRL+ALT+DEL` and `WIN+L`
 | 
				
			||||||
 | 
					    - Tap Dance on `ESC` for `ESC` and  ` ` ` 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Layer 1 is default QWERTY with no custom features used mostly for gaming
 | 
				
			||||||
 | 
					    - Enabled by `Fn2+CAPS` from base layer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Layer 2 is Function layer:
 | 
				
			||||||
 | 
					    - F keys
 | 
				
			||||||
 | 
					    - Arrows
 | 
				
			||||||
 | 
					    - Volume and Media controls
 | 
				
			||||||
 | 
					    - AutoHotkey shortcuts based on [Speaker Control](https://github.com/stanrc85/Speaker-Control) script
 | 
				
			||||||
 | 
					        - AHK Mic is used to mute/unmute microphone
 | 
				
			||||||
 | 
					        - AHK Speaker switches audio output between headphones and speakers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Layer 3 is Backlight control and RESET
 | 
				
			||||||
 | 
					    - `Fn2+CAPS` used to toggle Default QWERTY layer on and off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Build
 | 
				
			||||||
 | 
					To build the firmware file associated with this keymap, simply run `make your_keyboard:stanrc85`.
 | 
				
			||||||
 | 
				
			|||||||
@ -1 +1,3 @@
 | 
				
			|||||||
TAP_DANCE_ENABLE = yes
 | 
					TAP_DANCE_ENABLE = yes
 | 
				
			||||||
 | 
					DYNAMIC_KEYMAP_ENABLE = no
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user