Kiibohd Controller
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

led_conf.h 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* Copyright (C) 2015 by Jacob Alexander
  2. *
  3. * Permission is hereby granted, free of charge, to any person obtaining a copy
  4. * of this software and associated documentation files (the "Software"), to deal
  5. * in the Software without restriction, including without limitation the rights
  6. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. * copies of the Software, and to permit persons to whom the Software is
  8. * furnished to do so, subject to the following conditions:
  9. *
  10. * The above copyright notice and this permission notice shall be included in
  11. * all copies or substantial portions of the Software.
  12. *
  13. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. * THE SOFTWARE.
  20. */
  21. #pragma once
  22. // ----- Variables -----
  23. // A bit mask determining which LEDs are enabled in the ISSI chip
  24. // Infinity ErgoDox full mask
  25. // 0x00 -> 0x11
  26. /*
  27. const uint8_t LED_ledEnableMask[] = {
  28. 0xE8, // I2C address
  29. 0x00, // Starting register address
  30. 0x37, 0x37, // C1-1 -> C1-16
  31. 0xBF, 0xBF, // C2-1 -> C2-16
  32. 0xFF, 0xFF, // C3-1 -> C3-16
  33. 0xEF, 0xEF, // C4-1 -> C4-16
  34. 0xF7, 0xF7, // C5-1 -> C5-16
  35. 0xFF, 0xFF, // C6-1 -> C6-16
  36. 0xF3, 0xF3, // C7-1 -> C7-16
  37. 0x6C, 0x6C, // C8-1 -> C8-16
  38. 0x24, 0x24, // C9-1 -> C9-16
  39. };
  40. */
  41. /*
  42. const uint8_t LED_ledEnableMask[] = {
  43. 0xE8, // I2C address
  44. 0x00, // Starting register address
  45. 0x00, 0x00, // C1-1 -> C1-16
  46. //0xEC, 0xEC, // C1-1 -> C1-16
  47. //0xFD, 0xFD, // C2-1 -> C2-16
  48. 0x00, 0x00, // C3-1 -> C3-16
  49. 0x00, 0x00, // C4-1 -> C4-16
  50. 0x00, 0x00, // C5-1 -> C5-16
  51. 0x00, 0x00, // C6-1 -> C6-16
  52. 0x00, 0x00, // C7-1 -> C7-16
  53. 0x00, 0x00, // C8-1 -> C8-16
  54. 0x00, 0x00, // C9-1 -> C9-16
  55. };
  56. */
  57. const uint8_t LED_ledEnableMask[] = {
  58. 0xE8, // I2C address
  59. 0x00, // Starting register address
  60. 0xFF, 0xFF, // C1-1 -> C1-16
  61. 0xFF, 0xFF, // C2-1 -> C2-16
  62. 0xFF, 0xFF, // C3-1 -> C3-16
  63. 0xFF, 0xFF, // C4-1 -> C4-16
  64. 0xFF, 0xFF, // C5-1 -> C5-16
  65. 0xFF, 0xFF, // C6-1 -> C6-16
  66. 0xFF, 0xFF, // C7-1 -> C7-16
  67. 0xFF, 0xFF, // C8-1 -> C8-16
  68. 0xFF, 0xFF, // C9-1 -> C9-16
  69. };