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.

83 lines
2.0 KiB

[Keyboard] beta support for the Rocketboard-16 macro/num pad (#10688) * Firmware initial commit, still has a few bugs - mainly rotary encoders do not work and needs cleaning up * Fixed the volume control issue and limited the RGB brightness (can be really bright), added the ability to switch LED mode with left encoder click, and added via support (untested) * Remove define that should go in config.h * Removed define that should be in config.h * Removed LTO_ENABLE as suggested - has issues on ARM Co-authored-by: Drashna Jaelre <drashna@live.com> * Added the correct define for OLED screen size * Applied suggested change to remove description Co-authored-by: Ryan <fauxpark@gmail.com> * Made suggested change to remove backslashes Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to remove backslashes Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/rocketboard_16/rocketboard_16.c Co-authored-by: Ryan <fauxpark@gmail.com> * Added suggested comments Co-authored-by: Ryan <fauxpark@gmail.com> * Made suggested changes to rules file Co-authored-by: Ryan <fauxpark@gmail.com> * Added suggested change to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Added info.json for QMK configurator * Update readme.md * This change makes the firmware work... through magic... seriously, no idea - but it works! * Updated dimming step, OLED functionality, and rules for formatting - Changed the dimming step size for smoother dimming with the reduced range - Added lots of OLED functionality - QMK logo and title at top, num/caps/scroll lock status, and backlight brightness level - Updated the rules.mk file to comply more closely with the formatting guidelines * Fixed tab issues Co-authored-by: Ryan <fauxpark@gmail.com> * Updated to use bootmagic lite with the key that usually turns rgb on/off Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
3 years ago
[Keyboard] beta support for the Rocketboard-16 macro/num pad (#10688) * Firmware initial commit, still has a few bugs - mainly rotary encoders do not work and needs cleaning up * Fixed the volume control issue and limited the RGB brightness (can be really bright), added the ability to switch LED mode with left encoder click, and added via support (untested) * Remove define that should go in config.h * Removed define that should be in config.h * Removed LTO_ENABLE as suggested - has issues on ARM Co-authored-by: Drashna Jaelre <drashna@live.com> * Added the correct define for OLED screen size * Applied suggested change to remove description Co-authored-by: Ryan <fauxpark@gmail.com> * Made suggested change to remove backslashes Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to remove backslashes Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/rocketboard_16/rocketboard_16.c Co-authored-by: Ryan <fauxpark@gmail.com> * Added suggested comments Co-authored-by: Ryan <fauxpark@gmail.com> * Made suggested changes to rules file Co-authored-by: Ryan <fauxpark@gmail.com> * Added suggested change to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Added info.json for QMK configurator * Update readme.md * This change makes the firmware work... through magic... seriously, no idea - but it works! * Updated dimming step, OLED functionality, and rules for formatting - Changed the dimming step size for smoother dimming with the reduced range - Added lots of OLED functionality - QMK logo and title at top, num/caps/scroll lock status, and backlight brightness level - Updated the rules.mk file to comply more closely with the formatting guidelines * Fixed tab issues Co-authored-by: Ryan <fauxpark@gmail.com> * Updated to use bootmagic lite with the key that usually turns rgb on/off Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
3 years ago
  1. /*
  2. Copyright 2020 Seth Bonner <fl3tching101@gmail.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0xB034
  17. #define PRODUCT_ID 0xFF16
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER Rocketboard
  20. #define PRODUCT Rocketboard-16
  21. /* key matrix size */
  22. #define MATRIX_ROWS 5
  23. #define MATRIX_COLS 4
  24. #define MATRIX_ROW_PINS { A9, B13, B14, B15, B3 }
  25. #define MATRIX_COL_PINS { B8, B9, B10, B11 }
  26. #define DIODE_DIRECTION COL2ROW
  27. /* Bootmagic key - row 4, col 1 */
  28. #define BOOTMAGIC_LITE_ROW 4
  29. #define BOOTMAGIC_LITE_COLUMN 1
  30. /* define if matrix has ghost */
  31. //#define MATRIX_HAS_GHOST
  32. /* Set 0 if debouncing isn't needed */
  33. #define DEBOUNCE 5
  34. #define RGBLIGHT_ANIMATIONS
  35. #define RGB_DI_PIN A4
  36. #define RGBLED_NUM 16
  37. #define RGBLIGHT_VAL_STEP 8
  38. #define RGBLIGHT_SLEEP
  39. // OLED stuff
  40. #define OLED_DISPLAY_128X64
  41. #define OLED_FONT_H "custom_font.h"
  42. // Allows for rotary encoder volume control
  43. #define TAP_CODE_DELAY 20
  44. /* Encoder stuff */
  45. #define ENCODERS_PAD_A \
  46. { A0, A2 }
  47. #define ENCODERS_PAD_B \
  48. { A1, A3 }
  49. #define LOCKING_SUPPORT_ENABLE
  50. #define LOCKING_RESYNC_ENABLE
  51. /*
  52. * Feature disable options
  53. * These options are also useful to firmware size reduction.
  54. */
  55. /* disable debug print */
  56. //#define NO_DEBUG
  57. /* disable print */
  58. //#define NO_PRINT
  59. /* disable action features */
  60. //#define NO_ACTION_LAYER
  61. //#define NO_ACTION_TAPPING
  62. //#define NO_ACTION_ONESHOT
  63. //#define NO_ACTION_MACRO
  64. //#define NO_ACTION_FUNCTION