constants.py 1.2 KB

123456789101112131415161718192021222324252627282930
  1. """Information that should be available to the python library.
  2. """
  3. from pathlib import Path
  4. # The root of the qmk_firmware tree.
  5. QMK_FIRMWARE = Path.cwd()
  6. # This is the number of directories under `qmk_firmware/keyboards` that will be traversed. This is currently a limitation of our make system.
  7. MAX_KEYBOARD_SUBFOLDERS = 5
  8. # Supported processor types
  9. CHIBIOS_PROCESSORS = 'cortex-m0', 'cortex-m0plus', 'cortex-m3', 'cortex-m4', 'MKL26Z64', 'MK20DX128', 'MK20DX256', 'STM32F042', 'STM32F072', 'STM32F103', 'STM32F303', 'STM32F401', 'STM32F411'
  10. LUFA_PROCESSORS = 'atmega16u2', 'atmega32u2', 'atmega16u4', 'atmega32u4', 'at90usb646', 'at90usb647', 'at90usb1286', 'at90usb1287', None
  11. VUSB_PROCESSORS = 'atmega32a', 'atmega328p', 'atmega328', 'attiny85'
  12. # Common format strings
  13. DATE_FORMAT = '%Y-%m-%d'
  14. DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S %Z'
  15. TIME_FORMAT = '%H:%M:%S'
  16. # Used when generating matrix locations
  17. COL_LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijilmnopqrstuvwxyz'
  18. ROW_LETTERS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop'
  19. # Mapping between info.json and config.h keys
  20. LED_INDICATORS = {
  21. 'caps_lock': 'LED_CAPS_LOCK_PIN',
  22. 'num_lock': 'LED_NUM_LOCK_PIN',
  23. 'scrol_lock': 'LED_SCROLL_LOCK_PIN',
  24. }