Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
98436577d7
9 changed files with 132 additions and 114 deletions
|
@ -87,10 +87,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define SPI_MISO_PAL_MODE 5
|
||||
|
||||
#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A4
|
||||
// #define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 64
|
||||
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 8
|
||||
// #define EXTERNAL_EEPROM_BYTE_COUNT 8196
|
||||
// #define EXTERNAL_EEPROM_PAGE_SIZE 32
|
||||
// #define EXTERNAL_EEPROM_ADDRESS_SIZE 2
|
||||
// #define DEBUG_EEPROM_OUTPUT
|
||||
|
||||
#define PMW3360_CS_PIN B0
|
||||
#define PMW3360_CS_PIN B0
|
||||
#define PMW3360_SPI_MODE 3
|
||||
#define PMW3360_SPI_DIVISOR 4
|
||||
|
|
|
@ -22,5 +22,4 @@ void matrix_scan_sub_kb(void) {
|
|||
if (!readPin(A0)) {
|
||||
reset_keyboard();
|
||||
}
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
_______, _______, _______, _______, _______, _______, KC_BTN7, KC_BTN4, KC_BTN5, KC_BTN8, _______, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, KC_BTN3,
|
||||
KC_ACCEL, _______, _______,
|
||||
_______, KC_ACCEL, _______,
|
||||
_______, _______, _______, _______
|
||||
),
|
||||
[_GAMEPAD] = LAYOUT_5x6_right(
|
||||
|
@ -259,7 +259,7 @@ layer_state_t layer_state_set_keymap(layer_state_t state) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
#ifdef OLED_ENABLE
|
||||
// WPM-responsive animation stuff here
|
||||
# define SLEEP_FRAMES 2
|
||||
# define SLEEP_SPEED 10 // below this wpm value your animation will idle
|
||||
|
|
|
@ -46,15 +46,15 @@ __attribute__((weak)) kb_pointer_data_t process_mouse(void) {
|
|||
kb_pointer_data_t temp_data = {.mouse_x = 0, .mouse_y = 0};
|
||||
|
||||
report_pmw_t data = pmw_read_burst();
|
||||
if (data.isOnSurface && data.isMotion) {
|
||||
// Reset timer if stopped moving
|
||||
if (!data.isMotion) {
|
||||
if (MotionStart != 0) MotionStart = 0;
|
||||
return temp_data;
|
||||
}
|
||||
|
||||
if (data.isOnSurface) {
|
||||
// Set timer if new motion
|
||||
if ((MotionStart == 0) && data.isMotion) {
|
||||
if (MotionStart == 0) {
|
||||
if (debug_mouse) dprintf("Starting motion.\n");
|
||||
MotionStart = timer_read();
|
||||
}
|
||||
|
@ -197,3 +197,7 @@ void matrix_scan_kb(void) {
|
|||
matrix_scan_sub_kb();
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
||||
#ifdef POINTING_DEVICE_ENABLE
|
||||
void matrix_power_up(void) { pointing_device_task(); }
|
||||
#endif
|
||||
|
|
|
@ -43,7 +43,7 @@ typedef struct {
|
|||
uint16_t device_cpi;
|
||||
} kb_config_data_t;
|
||||
|
||||
typedef struct {
|
||||
__attribute__((aligned(16))) typedef struct {
|
||||
int8_t mouse_x;
|
||||
int8_t mouse_y;
|
||||
} kb_pointer_data_t;
|
||||
|
|
|
@ -14,5 +14,10 @@ UNICODE_ENABLE = no # Unicode
|
|||
KEY_LOCK_ENABLE = no
|
||||
|
||||
|
||||
BOOTLOADER = atmel-dfu
|
||||
BOOTLOADER = hid
|
||||
BOOTLOADER_SIZE = 512
|
||||
PROGRAM_CMD = $(HID_BOOTLOADER_CLI) -mmcu=$(MCU) -w -v $(BUILD_DIR)/$(TARGET).hex
|
||||
# TAP_DANCE_ENABLE = yes
|
||||
|
||||
WPM_ENABLE = yes
|
||||
SWAP_HANDS_ENABLE = yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue