Skip to content

Commit

Permalink
Merge pull request qmk#5 from mechkeys/qmk_builder
Browse files Browse the repository at this point in the history
Moving stuff around to support qmkbuilder
  • Loading branch information
scott-t-wilson authored Apr 2, 2017
2 parents 9d7d3eb + 2cf505a commit 82e2857
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions keyboards/lfk78/lfk78.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <avr/timer_avr.h>
#include <avr/wdt.h>
#include "lfk78.h"
#include "keymap.h"
#include "issi.h"
#include "TWIlib.h"
#include "lighting.h"
Expand Down
16 changes: 11 additions & 5 deletions keyboards/lfk78/lfk78.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef LFK78_H
#define LFK78_H

#include "keymap.h"
/* if the kb.h file exists (because we're running from qmkbuilder) include it */
#if __has_include("kb.h")
#include "kb.h"
#endif

#include "quantum.h"
#include "matrix.h"
#include <avr/sfr_defs.h>
Expand All @@ -14,9 +18,6 @@
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif

#define CLICK_HZ 500
#define CLICK_MS 2
#define CLICK_ENABLED 0

typedef struct RGB_Color {
uint16_t red;
Expand Down Expand Up @@ -46,10 +47,14 @@ enum action_functions {
LFK_LED_TEST // cycles through switch and RGB LEDs
};

#define CLICK_HZ 500
#define CLICK_MS 2
#define CLICK_ENABLED 0

void reset_keyboard_kb(void);
void click(uint16_t freq, uint16_t duration);

#ifndef KEYMAP
#ifdef LFK_REV_B
/* RevB Keymap */
// This a shortcut to help you visually see your layout.
Expand Down Expand Up @@ -117,6 +122,7 @@ void click(uint16_t freq, uint16_t duration);
{k41, k42, k43, KC_NO, k45, k46, k47, k48, k49, k4A, k4B, k4C, k4D, k4E, k4F, KC_NO, k4H, KC_NO}, \
{k51, k52, k53, k54, k55, KC_NO, KC_NO, KC_NO, k59, KC_NO, KC_NO, KC_NO, k5D, k5E, k5F, k5G, k5H, k5I} \
}
#endif
#endif //LFK_REV_B
#endif //!KEYMAP

#endif //LFK78_H

0 comments on commit 82e2857

Please sign in to comment.