logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (1747B)


  1. /*
  2. Copyright 2012 Jun Wako <wakojun@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. /* This code makes use of cy384's Arduino USB HID adapter for the Palm Portable
  15. Keyboard, released under the BSD licence */
  16. #pragma once
  17. // IO pins to serial
  18. // https://deskthority.net/wiki/Arduino_Pro_Micro for pin lookup
  19. #define VCC_PIN D1 // pro micro 2
  20. #define RX_PIN D0 //pro micro 3 , was 8 on cy384
  21. #define RTS_PIN C6 // 5 //[ was D4 // 4 on the cy384
  22. #define DCD_PIN E6 //7
  23. // if using the particular arduino pinout of CY384
  24. #ifdef CY384
  25. #define GND_PIN D7 //6
  26. #define PULLDOWN_PIN B1 // 15
  27. #endif
  28. #ifndef HANDSPRING
  29. // Set to 1 for Handspring or to disable RTS/DCD based handshake.
  30. #define HANDSPRING 0
  31. #endif
  32. #define MAXDROP 10 // check if keyboard is connected every X polling cycles
  33. #define SLEEP_TIMEOUT 500000 // check keyboard/reset this many millis
  34. #define MATRIX_ROWS 12
  35. #define MATRIX_COLS 8
  36. /* key combination for command */
  37. #define IS_COMMAND() ( \
  38. get_mods() == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) || \
  39. get_mods() == (MOD_BIT(KC_LGUI) | MOD_BIT(KC_RGUI)) || \
  40. get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  41. )