You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
936 B

  1. // Copyright 2023 ZSA Technology Labs, Inc <@zsa>
  2. // Copyright 2023 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  3. // SPDX-License-Identifier: GPL-2.0-or-later
  4. #pragma once
  5. #include "quantum.h"
  6. extern bool mcp23018_leds[];
  7. #define MCP23018_DEFAULT_ADDRESS 0b0100000
  8. #define STATUS_LED_1(status) gpio_write_pin(B5, (bool)(status))
  9. #define STATUS_LED_2(status) gpio_write_pin(B4, (bool)(status))
  10. #define STATUS_LED_3(status) mcp23018_leds[0] = (bool)(status)
  11. #define STATUS_LED_4(status) mcp23018_leds[1] = (bool)(status)
  12. enum voyager_keycodes {
  13. TOGGLE_LAYER_COLOR = QK_KB,
  14. LED_LEVEL,
  15. };
  16. typedef union {
  17. uint32_t raw;
  18. struct {
  19. bool disable_layer_led : 1;
  20. bool placeholder : 1;
  21. bool led_level : 1;
  22. uint8_t led_level_res : 2; // DO NOT REMOVE
  23. };
  24. } keyboard_config_t;
  25. extern keyboard_config_t keyboard_config;
  26. bool is_transport_connected(void);