]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/planck/keymaps/zach/zach_common_functions.c
Worked around some new Makefile issues.
[qmk_firmware.git] / keyboards / planck / keymaps / zach / zach_common_functions.c
index 1f907e6cbcaa1c461bbe7d2ff952fc2eea0c5bad..2c47b228969068ab28f9d3b9b732e95eb1083b9f 100644 (file)
@@ -70,29 +70,6 @@ float unilin[][2]               = SONG(UNICODE_LINUX);
 #ifdef TAP_DANCE_ENABLE
 #define TAPPING_TERM 200
 
-uint8_t Lstate = 0, Rstate = 0;
-uint32_t Ltimer = 0, Rtimer = 0;
-uint32_t Ltimes[3], Rtimes[4];   // Ratio of tap times should be about 1.335 (L/R)
-void rhythm_parse(void){
-    int L = Ltimes[0] + Ltimes[1] + Ltimes[2];  // Start to end time
-    int R = Rtimes[0] + Rtimes[1] + Rtimes[2] + Rtimes[3];
-    if(abs(R-L) > 10){
-        tap(KC_N); tap(KC_O);
-        return;
-    } else {
-        L = (L / 3)*100;                    // Average time per tap * 100
-        R = (R / 4);
-        if(abs(abs(L/R)-133) > 1){
-            tap(KC_N); tap(KC_O);
-            tap(KC_P); tap(KC_E);
-            return;
-        } else {
-            tap(KC_O); tap(KC_K);
-            return;
-        }
-    }
-};
-
 void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap
   switch(state->count){      // Only turn the layer on once
     case 1:
@@ -164,31 +141,31 @@ qk_tap_dance_action_t tap_dance_actions[] = {
 };
 #endif
 
-#ifdef UNICODE_ENABLE
+//#ifdef UNICODE_ENABLE
 // Unicode shortcuts
-#define IBANG   UC(0x203D)
-#define RAROW   UC(0x2192)
-#define LAROW   UC(0x2190)
-#define DEGREE  UC(0x00B0)
-#define OMEGA   UC(0x03A9)
-#define WOMEGA  UC(0x03C9)
-#define MICRO   UC(0x00B5)
-#define PLUMIN  UC(0x00B1)
-#define SUPA2   UC(0x00B2)
-#define ROMAN1  UC(0x2160)
-#define ROMAN2  UC(0x2161)
-#define ROMAN3  UC(0x2162)
-#define ROMAN4  UC(0x2163)
-#define ROMAN5  UC(0x2164)
-#define ROMAN6  UC(0x2165)
-#define ROMAN7  UC(0x2166)
-#define roman1  UC(0x2170)
-#define roman2  UC(0x2171)
-#define roman3  UC(0x2172)
-#define roman4  UC(0x2173)
-#define roman5  UC(0x2174)
-#define roman6  UC(0x2175)
-#define roman7  UC(0x2176)
+#define IBANG   X(0x203D)
+#define RAROW   X(0x2192)
+#define LAROW   X(0x2190)
+#define DEGREE  X(0x00B0)
+#define OMEGA   X(0x03A9)
+#define WOMEGA  X(0x03C9)
+#define MICRO   X(0x00B5)
+#define PLUMIN  X(0x00B1)
+#define SUPA2   X(0x00B2)
+#define ROMAN1  X(0x2160)
+#define ROMAN2  X(0x2161)
+#define ROMAN3  X(0x2162)
+#define ROMAN4  X(0x2163)
+#define ROMAN5  X(0x2164)
+#define ROMAN6  X(0x2165)
+#define ROMAN7  X(0x2166)
+#define roman1  X(0x2170)
+#define roman2  X(0x2171)
+#define roman3  X(0x2172)
+#define roman4  X(0x2173)
+#define roman5  X(0x2174)
+#define roman6  X(0x2175)
+#define roman7  X(0x2176)
 
 #ifdef UNICODEMAP_ENABLE        // For Unicode characters larger than 0x8000. Send with X(<unicode>)
 enum Ext_Unicode{
@@ -215,7 +192,7 @@ const uint32_t PROGMEM unicode_map[] = {
 #define TMBL    X(TUMBLER)
 #endif
 
-#endif
+//#endif
 
 static uint16_t key_timer;
 static uint8_t  caps_status = 0;