mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	use Ergodox EZ’s third LED for “scroll lock”
This commit is contained in:
		
							parent
							
								
									61fbb47eb6
								
							
						
					
					
						commit
						08239aadea
					
				| @ -1,7 +1,8 @@ | ||||
| #include "ergodox_ez.h" | ||||
| #include "debug.h" | ||||
| #include "action_layer.h" | ||||
| #include "keymap_neo2.h" | ||||
| #include "led.h" | ||||
| #include "keymap_extras/keymap_neo2.h" | ||||
| 
 | ||||
| // Layer names
 | ||||
| #define BASE 0      // default layer
 | ||||
| @ -267,7 +268,13 @@ void matrix_scan_user(void) | ||||
|             ergodox_right_led_3_on(); | ||||
|         break; | ||||
|         default: | ||||
|             if(host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) { | ||||
|                 ergodox_led_all_set(LED_BRIGHTNESS_HI); | ||||
|                 ergodox_right_led_1_on(); | ||||
|             } | ||||
|             else { | ||||
|                 ergodox_board_led_off(); | ||||
|             } | ||||
|         break; | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 coderkun
						coderkun