1
0
Fork 0

Keymap: Velocikey implemented at userspace, readme is more helpful (#3974)

* deleting arkag branch, forcibly moving changes over to master

* fade_color function added, not tested

* added half functions some stuff

* surround_type function implemented and working.

* added flashing function and removed fading, flashing supports infinite flashing along with controlled number flashes

* added a fade state machine and functionality

* build optimizations, changed fade to bounce between bounds rather than roll over, added a HALMAK layout

* changes to sleep breath function, changed how I will switch to HALMAK

* support for halmak added

* support for activity detection added, condensed fading and flashing state machines, removed support for HALMAK and COLEMAK because arkag is stupid

* changed sleep and inactive behaviors, now the color shifting reverses on state change, yay! save_color and reset_color are made to enable layer color changing to look cooler.

* reformatted some if statements in state detection

* changes to force fade to pause on boot, or plug in.

* Attempting to move over to userspace, pushing to repository for help

* userspace stuff....

* userspace stuff....

* layout changes, working userspace,

Removed left side shift and replaced it with a MT() for LSFT and SPC. Userspace seems to be working properly now! HURRAY

* Layout change

Removed space/shift and reset modifiers to what they were originally. Added homerow modifiers.

* Removed excessive tabs in files

* Moved mods on homerow around...

* changes recommended by @drashna

* removed homerow mods, more flashy lighting!

* changed delays for lighting.

* velocikey code retro fit into userspace to match typing speed

currently "working" but isn't as reactive as I want.

* Readme and other documentation hidden throughout code

* Added a pretty picture

* pretty picture actually added

* More readme updates

* Velocikey now working inside my userspace!

* Changed repo macro and fixed readme

* Removed media layer, moved media control to LAZY layer

* fixed more merge issues when I had to merge...
This commit is contained in:
Alexander Kagno 2018-09-25 16:38:04 -06:00 committed by Drashna Jaelre
parent 118e948e35
commit 61f9541066
5 changed files with 169 additions and 145 deletions

View file

@ -25,26 +25,13 @@
#define MOD_GUI_MASK (MOD_BIT(KC_LGUI) | MOD_BIT(KC_RGUI))
#define MOD_SFT_MASK (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT))
#define TAP_A LALT_T(KC_A)
#define TAP_SCN RALT_T(KC_SCOLON)
#define TAP_S LCTL_T(KC_S)
#define TAP_L RCTL_T(KC_L)
#define TAP_D LSFT_T(KC_D)
#define TAP_K RSFT_T(KC_K)
#define TAP_F LGUI_T(KC_F)
#define TAP_J RGUI_T(KC_J)
#define TAP_EQ LSFT_T(KC_EQUAL)
#define TAP_5 RSFT_T(KC_5)
#define LED_FLASH_DELAY 150
#define LED_FADE_DELAY 10
#define INACTIVE_DELAY 200
#define SLEEP_DELAY 60000
#define ACCEL_DELAY 500
#define DEACCEL_DELAY 500
#define INACTIVE_DELAY 250
#define SLEEP_DELAY 180000
enum {
_QWERTY = 0,
@ -124,6 +111,10 @@ enum tapdances {
void send_unicode_hex_string(const char *str);
void velocikey_accelerate(void);
void velocikey_decelerate(void);
uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue);
void set_color (Color new, bool update);
void save_color(Color to_save);
void reset_color(void);