mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-09 15:12:33 +00:00
* chore: move zsa/oryx module to a git submodule * feat: port navigators to qmk25 * feat: adds a transmit and receive i2c method * fix: navigator trackpad compile issue * feat: improved trackpad scrolling, maybe? * experiment: slight acceleration curve, more aggressive tap debounce * fix: a better way to debounce taps * feat: adds aim/turbo mode * chore: tweak turbo/aim for the trackpad * chore: remove navigator keys * fix: #pragma once * fix: address the i2c transmit and receive length on u16 * fix: change the packet size from 53 to 17 * chore: add more comments * fix: remove the navigator_cpi from the eeprom config * fix: remove the navigator_cpi from the eeprom config (ergodox)
32 lines
883 B
C
32 lines
883 B
C
// Copyright 2023 ZSA Technology Labs, Inc <@zsa>
|
|
// Copyright 2023 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "quantum.h"
|
|
|
|
extern bool mcp23018_leds[];
|
|
|
|
#define MCP23018_DEFAULT_ADDRESS 0b0100000
|
|
|
|
#define STATUS_LED_1(status) gpio_write_pin(B5, (bool)(status))
|
|
#define STATUS_LED_2(status) gpio_write_pin(B4, (bool)(status))
|
|
#define STATUS_LED_3(status) mcp23018_leds[0] = (bool)(status)
|
|
#define STATUS_LED_4(status) mcp23018_leds[1] = (bool)(status)
|
|
|
|
typedef union {
|
|
uint32_t raw;
|
|
struct {
|
|
bool disable_layer_led : 1;
|
|
bool led_level : 1;
|
|
uint8_t led_level_res : 2; // DO NOT REMOVE
|
|
uint8_t navigator_cpi : 3;
|
|
};
|
|
} keyboard_config_t;
|
|
|
|
extern keyboard_config_t keyboard_config;
|
|
|
|
bool is_transport_connected(void);
|