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.

52 lines
1.4 KiB

  1. /*
  2. Copyright 2021 Salicylic_Acid
  3. Copyright 2021 3araht
  4. Copyright 2022 jun10000
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. /* key matrix size */
  18. #define MATRIX_ROWS 10
  19. #define MATRIX_COLS 8
  20. // wiring of each half
  21. #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 }
  22. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, E6 }
  23. #ifndef IOS_DEVICE_ENABLE
  24. #define RGBLIGHT_LIMIT_VAL 90
  25. #define RGBLIGHT_VAL_STEP 17
  26. #else
  27. #define RGBLIGHT_LIMIT_VAL 30
  28. #define RGBLIGHT_VAL_STEP 4
  29. #endif
  30. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  31. // USB_MAX_POWER_CONSUMPTION value for naked48 keyboard
  32. // 120 RGBoff, OLEDoff
  33. // 120 OLED
  34. // 330 RGB 6
  35. // 300 RGB 32
  36. // 310 OLED & RGB 32
  37. #define USB_MAX_POWER_CONSUMPTION 400
  38. #else
  39. // fix iPhone and iPad power adapter issue
  40. // iOS device need lessthan 100
  41. #define USB_MAX_POWER_CONSUMPTION 100
  42. #endif