Dimple: Fix Caps Lock LED behaviour (#6936)
* Dimple: Fix Caps Lock LED behaviour * Dimple: fix helper functions and cleanup unnecessary code
This commit is contained in:
		@@ -58,9 +58,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
	/* #define RGBLIGHT_SAT_STEP 8 */
 | 
			
		||||
	/* #define RGBLIGHT_VAL_STEP 8 */
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* CapsLock LED */
 | 
			
		||||
#define BACKLIGHT_PIN E6
 | 
			
		||||
#ifdef BACKLIGHT_PIN
 | 
			
		||||
	#define BACKLIGHT_LEVELS 6
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -16,11 +16,11 @@
 | 
			
		||||
#include "dimple.h"
 | 
			
		||||
 | 
			
		||||
void dimple_led_on() {
 | 
			
		||||
  writePinHigh(E6);
 | 
			
		||||
  writePinLow(E6);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void dimple_led_off() {
 | 
			
		||||
  writePinLow(E6);
 | 
			
		||||
  writePinHigh(E6);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void keyboard_pre_init_kb(void) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user