diff options
| -rw-r--r-- | keyboards/orange75/config.h | 35 | ||||
| -rw-r--r-- | keyboards/orange75/info.json | 12 | ||||
| -rw-r--r-- | keyboards/orange75/keymaps/default/keymap.c | 53 | ||||
| -rw-r--r-- | keyboards/orange75/orange75.c | 1 | ||||
| -rw-r--r-- | keyboards/orange75/orange75.h | 29 | ||||
| -rw-r--r-- | keyboards/orange75/readme.md | 16 | ||||
| -rw-r--r-- | keyboards/orange75/rules.mk | 73 |
7 files changed, 219 insertions, 0 deletions
diff --git a/keyboards/orange75/config.h b/keyboards/orange75/config.h new file mode 100644 index 000000000..7d1b497be --- /dev/null +++ b/keyboards/orange75/config.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | /* USB Device descriptor parameter */ | ||
| 4 | #define VENDOR_ID 0xFEEB | ||
| 5 | #define PRODUCT_ID 0x6060 | ||
| 6 | #define DEVICE_VER 0x0001 | ||
| 7 | #define MANUFACTURER Fox-Lab | ||
| 8 | #define PRODUCT Orange75 | ||
| 9 | #define DESCRIPTION Keyboard | ||
| 10 | |||
| 11 | /* key matrix size */ | ||
| 12 | #define MATRIX_ROWS 15 | ||
| 13 | #define MATRIX_COLS 6 | ||
| 14 | |||
| 15 | /* key matrix pins */ | ||
| 16 | #define MATRIX_ROW_PINS { E6,F0, F1, F4, F5, F6, F7, C7, C6, B6, B4, D7, D4, D5, D6 } | ||
| 17 | #define MATRIX_COL_PINS { D3, D2, D1, D0, B7, B3 } | ||
| 18 | #define UNUSED_PINS | ||
| 19 | |||
| 20 | /* COL2ROW or ROW2COL */ | ||
| 21 | #define DIODE_DIRECTION COL2ROW | ||
| 22 | |||
| 23 | /* number of backlight levels */ | ||
| 24 | #define BACKLIGHT_PIN B5 | ||
| 25 | #define BACKLIGHT_LEVELS 3 | ||
| 26 | |||
| 27 | |||
| 28 | /* Set 0 if debouncing isn't needed */ | ||
| 29 | #define DEBOUNCING_DELAY 5 | ||
| 30 | |||
| 31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 32 | #define LOCKING_SUPPORT_ENABLE | ||
| 33 | |||
| 34 | /* Locking resynchronize hack */ | ||
| 35 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/orange75/info.json b/keyboards/orange75/info.json new file mode 100644 index 000000000..093b4cd4e --- /dev/null +++ b/keyboards/orange75/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Orange75", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 16, | ||
| 6 | "height": 6.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"~", "x":0, "y":1.25}, {"label":"!", "x":1, "y":1.25}, {"label":"@", "x":2, "y":1.25}, {"label":"#", "x":3, "y":1.25}, {"label":"$", "x":4, "y":1.25}, {"label":"%", "x":5, "y":1.25}, {"label":"^", "x":6, "y":1.25}, {"label":"&", "x":7, "y":1.25}, {"label":"*", "x":8, "y":1.25}, {"label":"(", "x":9, "y":1.25}, {"label":")", "x":10, "y":1.25}, {"label":"_", "x":11, "y":1.25}, {"label":"+", "x":12, "y":1.25}, {"label":"Backspace", "x":13, "y":1.25, "w":2}, {"label":"Home", "x":15, "y":1.25}, {"label":"Tab", "x":0, "y":2.25, "w":1.5}, {"label":"Q", "x":1.5, "y":2.25}, {"label":"W", "x":2.5, "y":2.25}, {"label":"E", "x":3.5, "y":2.25}, {"label":"R", "x":4.5, "y":2.25}, {"label":"T", "x":5.5, "y":2.25}, {"label":"Y", "x":6.5, "y":2.25}, {"label":"U", "x":7.5, "y":2.25}, {"label":"I", "x":8.5, "y":2.25}, {"label":"O", "x":9.5, "y":2.25}, {"label":"P", "x":10.5, "y":2.25}, {"label":"{", "x":11.5, "y":2.25}, {"label":"}", "x":12.5, "y":2.25}, {"label":"|", "x":13.5, "y":2.25, "w":1.5}, {"label":"End", "x":15, "y":2.25}, {"label":"Caps Lock", "x":0, "y":3.25, "w":1.75}, {"label":"A", "x":1.75, "y":3.25}, {"label":"S", "x":2.75, "y":3.25}, {"label":"D", "x":3.75, "y":3.25}, {"label":"F", "x":4.75, "y":3.25}, {"label":"G", "x":5.75, "y":3.25}, {"label":"H", "x":6.75, "y":3.25}, {"label":"J", "x":7.75, "y":3.25}, {"label":"K", "x":8.75, "y":3.25}, {"label":"L", "x":9.75, "y":3.25}, {"label":":", "x":10.75, "y":3.25}, {"label":"\"", "x":11.75, "y":3.25}, {"label":"Enter", "x":12.75, "y":3.25, "w":2.25}, {"label":"Page Up", "x":15, "y":3.25}, {"label":"Shift", "x":0, "y":4.25, "w":2.25}, {"label":"Z", "x":2.25, "y":4.25}, {"label":"X", "x":3.25, "y":4.25}, {"label":"C", "x":4.25, "y":4.25}, {"label":"V", "x":5.25, "y":4.25}, {"label":"B", "x":6.25, "y":4.25}, {"label":"N", "x":7.25, "y":4.25}, {"label":"M", "x":8.25, "y":4.25}, {"label":"<", "x":9.25, "y":4.25}, {"label":">", "x":10.25, "y":4.25}, {"label":"?", "x":11.25, "y":4.25}, {"label":"Shift", "x":12.25, "y":4.25, "w":1.75}, {"label":"Up", "x":14, "y":4.25}, {"label":"Page Down", "x":15, "y":4.25}, {"label":"Ctrl", "x":0, "y":5.25, "w":1.25}, {"label":"Win", "x":1.25, "y":5.25, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.25, "w":1.25}, {"x":3.75, "y":5.25, "w":6.25}, {"label":"Alt", "x":10, "y":5.25, "w":1.25}, {"label":"Fn", "x":11.25, "y":5.25, "w":1.25}, {"label":"Left", "x":13, "y":5.25}, {"label":"Down", "x":14, "y":5.25}, {"label":"Right", "x":15, "y":5.25}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } \ No newline at end of file | ||
diff --git a/keyboards/orange75/keymaps/default/keymap.c b/keyboards/orange75/keymaps/default/keymap.c new file mode 100644 index 000000000..50aaf718e --- /dev/null +++ b/keyboards/orange75/keymaps/default/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | |||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 5 | |||
| 6 | LAYOUT( | ||
| 7 | KC_ESC, KC_F1,KC_F2,KC_F3,KC_F4,KC_F5,KC_F6,KC_F7,KC_F8,KC_F9,KC_F10,KC_F11, KC_F12, KC_DEL, | ||
| 8 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, | ||
| 9 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, | ||
| 10 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | ||
| 11 | KC_LSFT, LT(1, KC_NO), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, KC_PGDN, | ||
| 12 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, LT(1, KC_NO), KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 13 | |||
| 14 | LAYOUT( | ||
| 15 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 16 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_TOGG, | ||
| 17 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, | ||
| 18 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_INC, | ||
| 19 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_DEC, | ||
| 20 | _______, _______, _______, _______, _______, _______, _______, _______, _______) | ||
| 21 | }; | ||
| 22 | |||
| 23 | |||
| 24 | void matrix_init_user(void) { | ||
| 25 | } | ||
| 26 | |||
| 27 | void matrix_scan_user(void) { | ||
| 28 | } | ||
| 29 | |||
| 30 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 31 | return true; | ||
| 32 | } | ||
| 33 | |||
| 34 | void led_set_user(uint8_t usb_led) { | ||
| 35 | |||
| 36 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 37 | DDRB |= (1 << 0); PORTB &= ~(1 << 0); | ||
| 38 | } else { | ||
| 39 | DDRB &= ~(1 << 0); PORTB &= ~(1 << 0); | ||
| 40 | } | ||
| 41 | |||
| 42 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 43 | DDRB |= (1 << 1); PORTB &= ~(1 << 1); | ||
| 44 | } else { | ||
| 45 | DDRB &= ~(1 << 1); PORTB &= ~(1 << 1); | ||
| 46 | } | ||
| 47 | |||
| 48 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 49 | DDRB |= (1 << 2); PORTB &= ~(1 << 2); | ||
| 50 | } else { | ||
| 51 | DDRB &= ~(1 << 2); PORTB &= ~(1 << 2); | ||
| 52 | } | ||
| 53 | } \ No newline at end of file | ||
diff --git a/keyboards/orange75/orange75.c b/keyboards/orange75/orange75.c new file mode 100644 index 000000000..2d5f73048 --- /dev/null +++ b/keyboards/orange75/orange75.c | |||
| @@ -0,0 +1 @@ | |||
| #include "orange75.h" \ No newline at end of file | |||
diff --git a/keyboards/orange75/orange75.h b/keyboards/orange75/orange75.h new file mode 100644 index 000000000..1b351a595 --- /dev/null +++ b/keyboards/orange75/orange75.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | #define LAYOUT( \ | ||
| 6 | K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \ | ||
| 7 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
| 8 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, \ | ||
| 9 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K314, \ | ||
| 10 | K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, \ | ||
| 11 | K500, K501, K502, K506, K510, K511, K512, K513, K514 \ | ||
| 12 | ) { \ | ||
| 13 | { K000, K100, K200, K300, K400, K500 }, \ | ||
| 14 | { KC_NO, K101, K201, K301, K401, K501 }, \ | ||
| 15 | { K002, K102, K202, K302, K402, K502 }, \ | ||
| 16 | { K003, K103, K203, K303, K403, KC_NO}, \ | ||
| 17 | { K004, K104, K204, K304, K404, KC_NO}, \ | ||
| 18 | { K005, K105, K205, K305, K405, KC_NO}, \ | ||
| 19 | { K006, K106, K206, K306, K406, K506 }, \ | ||
| 20 | { K007, K107, K207, K307, K407, KC_NO}, \ | ||
| 21 | { K008, K108, K208, K308, K408, KC_NO}, \ | ||
| 22 | { K009, K109, K209, K309, K409, KC_NO}, \ | ||
| 23 | { K010, K110, K210, K310, K410, K510 }, \ | ||
| 24 | { K011, K111, K211, K311, K411, K511 }, \ | ||
| 25 | { K012, K112, K212, K312, K412, K512 }, \ | ||
| 26 | { K013, K113, K213, KC_NO,K413, K513 }, \ | ||
| 27 | { K014, K114, K214, K314, K414, K514 } \ | ||
| 28 | } | ||
| 29 | |||
diff --git a/keyboards/orange75/readme.md b/keyboards/orange75/readme.md new file mode 100644 index 000000000..910674406 --- /dev/null +++ b/keyboards/orange75/readme.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # Orange75 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 75% made by Fox Lab. | ||
| 6 | |||
| 7 | Keyboard Maintainer: [captsis](https://github.com/captsis), [fox-lab](https://github.com/fox-lab) | ||
| 8 | Hardware Supported: Orange75 powered by the ATmega32U4 | ||
| 9 | Hardware Availability: [zFrontier](https://en.zfrontier.com/collections/keyboards/products/foxlab-orange75), [Geekhack GB](https://geekhack.org/index.php?topic=95080.0) | ||
| 10 | |||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make orange75:default | ||
| 15 | |||
| 16 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). \ No newline at end of file | ||
diff --git a/keyboards/orange75/rules.mk b/keyboards/orange75/rules.mk new file mode 100644 index 000000000..0f9672a51 --- /dev/null +++ b/keyboards/orange75/rules.mk | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency. | ||
| 5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 8 | # automatically to create a 32-bit value in your source code. | ||
| 9 | # | ||
| 10 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 12 | # does not *change* the processor frequency - it should merely be updated to | ||
| 13 | # reflect the processor speed set externally so that the code can use accurate | ||
| 14 | # software delays. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | # | ||
| 18 | # LUFA specific | ||
| 19 | # | ||
| 20 | # Target architecture (see library "Board Types" documentation). | ||
| 21 | ARCH = AVR8 | ||
| 22 | |||
| 23 | # Input clock frequency. | ||
| 24 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 25 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 26 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 27 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 28 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 29 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 30 | # source code. | ||
| 31 | # | ||
| 32 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 33 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 34 | F_USB = $(F_CPU) | ||
| 35 | |||
| 36 | # Interrupt driven control endpoint task(+60) | ||
| 37 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | # Bootloader selection | ||
| 42 | # Teensy halfkay | ||
| 43 | # Pro Micro caterina | ||
| 44 | # Atmel DFU atmel-dfu | ||
| 45 | # LUFA DFU lufa-dfu | ||
| 46 | # QMK DFU qmk-dfu | ||
| 47 | # atmega32a bootloadHID | ||
| 48 | BOOTLOADER = atmel-dfu | ||
| 49 | |||
| 50 | |||
| 51 | # If you don't know the bootloader type, then you can specify the | ||
| 52 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
| 53 | # Teensy halfKay 512 | ||
| 54 | # Teensy++ halfKay 1024 | ||
| 55 | # Atmel DFU loader 4096 | ||
| 56 | # LUFA bootloader 4096 | ||
| 57 | # USBaspLoader 2048 | ||
| 58 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 59 | |||
| 60 | |||
| 61 | # Build Options | ||
| 62 | # comment out to disable the options. | ||
| 63 | # | ||
| 64 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
| 65 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 66 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 67 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 68 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 69 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 70 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 71 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 72 | AUDIO_ENABLE = no | ||
| 73 | RGBLIGHT_ENABLE = no \ No newline at end of file | ||
