mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-27 03:30:00 +01:00 
			
		
		
		
	dumber sculpt build
This commit is contained in:
		
							parent
							
								
									b0dfb037dc
								
							
						
					
					
						commit
						5ac0e6e6ae
					
				
							
								
								
									
										1
									
								
								keyboards/handwired/MS-sculpt-mobile/MS-sculpt-mobile.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								keyboards/handwired/MS-sculpt-mobile/MS-sculpt-mobile.c
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | |||||||
|  | #include "MS-sculpt-mobile.h" | ||||||
							
								
								
									
										48
									
								
								keyboards/handwired/MS-sculpt-mobile/MS-sculpt-mobile.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								keyboards/handwired/MS-sculpt-mobile/MS-sculpt-mobile.h
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,48 @@ | |||||||
|  | #ifndef MICROSOFT_SCULPT_MOBILE_H | ||||||
|  | #define MICROSOFT_SCULPT_MOBILE_H | ||||||
|  | 
 | ||||||
|  | #include "quantum.h" | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | #define KEYMAP( \ | ||||||
|  |                 k7Q, k6O, k6P,  k6Q, k5O, k5P, k5Q, k7A, k7B, k7C, k7D, k7E, k7F, k1O, k1K, k1L, \ | ||||||
|  |                 k5A,  k5K,  k5L, k5M, k5N, k5H, k5I, k2A, k2B, k2C, k2D, k5B, k5C, k5J, k2E, \ | ||||||
|  |                 k6R,  k6D,  k6E, k6F, k7I, k7J, k4A, k4B, k4C, k4D, k3A, k3B, k3C, k3D, \ | ||||||
|  |                 k0J, k6A, k6B, k6C, k7H, k1A, k1B, k5D, k5E, k5F, k5G, k1C, k7P,   k2G, \ | ||||||
|  |                 k2P, k7K, k7L, k7M, k7O, k0A, k0B, k0C, k0D, k0E, k0F, k2L, k6G, k1P,\ | ||||||
|  |                 k1Q, k4N, k3O,k6N, k3K, k0R, k1M, k6H, k6I, k6J \ | ||||||
|  | ) \ | ||||||
|  | { \ | ||||||
|  |         {k0A, k0B, k0C, k0D, k0E, k0F, KC_NO, KC_NO, KC_NO, k0J, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,KC_NO, KC_NO, k0R},\ | ||||||
|  |         {k1A, k1B, k1C, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, k1K, k1L, k1M, KC_NO, k1O, k1P, k1Q, KC_NO},\ | ||||||
|  |         {k2A, k2B, k2C, k2D, k2E, KC_NO, k2G, KC_NO, KC_NO, KC_NO, KC_NO, k2L, KC_NO, KC_NO, KC_NO, k2P, KC_NO, KC_NO},\ | ||||||
|  |         {k3A, k3B, k3C, k3D, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, k3K, KC_NO, KC_NO, KC_NO, k3O, KC_NO, KC_NO, KC_NO},\ | ||||||
|  |         {k4A, k4B, k4C, k4D, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, k4N, KC_NO,KC_NO, KC_NO, KC_NO},\ | ||||||
|  |         {k5A, k5B, k5C, k5D, k5E, k5F, k5G, k5H, k5I, k5J, k5K, k5L, k5M, k5N, k5O, k5P, k5Q, KC_NO },\ | ||||||
|  |         {k6A, k6B, k6C, k6D, k6E, k6F, k6G, k6H, k6I, k6J, KC_NO, KC_NO, KC_NO, k6N, k6O, k6P, k6Q, k6R},\ | ||||||
|  |         {k7A, k7B, k7C, k7D, k7E, k7F, KC_NO, k7H, k7I, k7J, k7K, k7L, k7M, KC_NO, k7O, k7P, k7Q, KC_NO},\ | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | #define MATRIX_TESTING_KEYMAP( \ | ||||||
|  |         k0A, k0B, k0C, k0D, k0E, k0F, k0G, k0H, k0I, k0, k0J, k0K, k0L, k0M, k0N, k0O, k0P, k0Q,\ | ||||||
|  |         k1A, k1B, k1C, k1D, k1E, k1F, k1G, k1H, k1I, k1, k1J, k1K, k1L, k1M, k1N, k1O, k1P, k1Q,\ | ||||||
|  |         k2A, k2B, k2C, k2D, k2E, k2F, k2G, k2H, k2I, k2, k2J, k2K, k2L, k2M, k2N, k2O, k2P, k2Q,\ | ||||||
|  |         k3A, k3B, k3C, k3D, k3E, k3F, k3G, k3H, k3I, k3, k3J, k3K, k3L, k3M, k3N, k3O, k3P, k3Q,\ | ||||||
|  |         k4A, k4B, k4C, k4D, k4E, k4F, k4G, k4H, k4I, k4, k4J, k4K, k4L, k4M, k4N, k4O, k4P, k4Q,\ | ||||||
|  |         k5A, k5B, k5C, k5D, k5E, k5F, k5G, k5H, k5I, k5, k5J, k5K, k5L, k5M, k5N, k5O, k5P, k5Q,\ | ||||||
|  |         k6A, k6B, k6C, k6D, k6E, k6F, k6G, k6H, k6I, k6, k6J, k6K, k6L, k6M, k6N, k6O, k6P, k6Q,\ | ||||||
|  |         k7A, k7B, k7C, k7D, k7E, k7F, k7G, k7H, k7I, k7, k7J, k7K, k7L, k7M, k7N, k7O, k7P, k7Q\ | ||||||
|  | ) \ | ||||||
|  | { \ | ||||||
|  |        {k0A, k0B, k0C, k0D, k0E, k0F, k0G, k0H, k0I, k0, k0J, k0K, k0L, k0M, k0N, k0O, k0P, k0Q},\ | ||||||
|  |         {k1A, k1B, k1C, k1D, k1E, k1F, k1G, k1H, k1I, k1, k1J, k1K, k1L, k1M, k1N, k1O, k1P, k1Q},\ | ||||||
|  |         {k2A, k2B, k2C, k2D, k2E, k2F, k2G, k2H, k2I, k2, k2J, k2K, k2L, k2M, k2N, k2O, k2P, k2Q},\ | ||||||
|  |         {k3A, k3B, k3C, k3D, k3E, k3F, k3G, k3H, k3I, k3, k3J, k3K, k3L, k3M, k3N, k3O, k3P, k3Q},\ | ||||||
|  |         {k4A, k4B, k4C, k4D, k4E, k4F, k4G, k4H, k4I, k4, k4J, k4K, k4L, k4M, k4N, k4O, k4P, k4Q},\ | ||||||
|  |         {k5A, k5B, k5C, k5D, k5E, k5F, k5G, k5H, k5I, k5, k5J, k5K, k5L, k5M, k5N, k5O, k5P, k5Q},\ | ||||||
|  |         {k6A, k6B, k6C, k6D, k6E, k6F, k6G, k6H, k6I, k6, k6J, k6K, k6L, k6M, k6N, k6O, k6P, k6Q},\ | ||||||
|  |         {k7A, k7B, k7C, k7D, k7E, k7F, k7G, k7H, k7I, k7, k7J, k7K, k7L, k7M, k7N, k7O, k7P, k7Q},\ | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #endif | ||||||
							
								
								
									
										3
									
								
								keyboards/handwired/MS-sculpt-mobile/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								keyboards/handwired/MS-sculpt-mobile/Makefile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | |||||||
|  | ifndef MAKEFILE_INCLUDED | ||||||
|  | 	include ../../../Makefile | ||||||
|  | endif | ||||||
							
								
								
									
										99
									
								
								keyboards/handwired/MS-sculpt-mobile/config.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										99
									
								
								keyboards/handwired/MS-sculpt-mobile/config.h
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,99 @@ | |||||||
|  | /*
 | ||||||
|  | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||||||
|  | 
 | ||||||
|  | This program is free software: you can redistribute it and/or modify | ||||||
|  | it under the terms of the GNU General Public License as published by | ||||||
|  | the Free Software Foundation, either version 2 of the License, or | ||||||
|  | (at your option) any later version. | ||||||
|  | 
 | ||||||
|  | This program is distributed in the hope that it will be useful, | ||||||
|  | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  | GNU General Public License for more details. | ||||||
|  | 
 | ||||||
|  | You should have received a copy of the GNU General Public License | ||||||
|  | along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | #ifndef CONFIG_H | ||||||
|  | #define CONFIG_H | ||||||
|  | 
 | ||||||
|  | #include "config_common.h" | ||||||
|  | 
 | ||||||
|  | /* USB Device descriptor parameter */ | ||||||
|  | #define VENDOR_ID       0xFEED | ||||||
|  | #define PRODUCT_ID      0x6060 | ||||||
|  | #define DEVICE_VER      0x0001 | ||||||
|  | #define MANUFACTURER    Microsoft+abit  | ||||||
|  | #define PRODUCT         sculpt mobile  | ||||||
|  | #define DESCRIPTION     6000 | ||||||
|  | 
 | ||||||
|  | /* key matrix size */ | ||||||
|  | #define MATRIX_ROWS 8  | ||||||
|  | #define MATRIX_COLS 18  | ||||||
|  | 
 | ||||||
|  | #ifdef ASTAR  | ||||||
|  | 
 | ||||||
|  |                         /*0   1   2   3    4   5  6   7   8 */ | ||||||
|  | #define MATRIX_ROW_PINS {D7, C6, D4, D0, D1, D3, D2, E2} | ||||||
|  | /*                        A  B   C   D   E   F   G   H   I   J  K   L   M   N   O   P   Q  R  */ | ||||||
|  | #define MATRIX_COL_PINS {B4, B5, E6, B7, B6, D6,  C7, F7, F6, F4,F5, F1,F0, D5, B0, B1, B2, B3} | ||||||
|  | 
 | ||||||
|  | #else | ||||||
|  | 
 | ||||||
|  | /* 			0  1  2  3  4 5  6   7 */ | ||||||
|  | #define MATRIX_ROW_PINS { F7,F6,F4,F5,F3,F2,F1,F0} | ||||||
|  | /*                        A   B   C   D   E   F   G   H   I   J  K  L   M   N   O   P   Q  R  */ | ||||||
|  | #define MATRIX_COL_PINS { B7, D0, D1, D2, D3, D4, D5, D6, D7, E0,E1,C1, C0, C3, C2, C5, C4,C6} | ||||||
|  | #define UNUSED_PINS { B6,B5,B4,B3,B2,B1,B0 } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|  | /* COL2ROW or ROW2COL */ | ||||||
|  | #define DIODE_DIRECTION ROW2COL | ||||||
|  | 
 | ||||||
|  | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||||||
|  | #define DEBOUNCING_DELAY 5 | ||||||
|  | 
 | ||||||
|  | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||||||
|  | //#define MATRIX_HAS_GHOST
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | /*
 | ||||||
|  |  * Magic Key Options | ||||||
|  |  * | ||||||
|  |  * Magic keys are hotkey commands that allow control over firmware functions of | ||||||
|  |  * the keyboard. They are best used in combination with the HID Listen program, | ||||||
|  |  * found here: https://www.pjrc.com/teensy/hid_listen.html
 | ||||||
|  |  * | ||||||
|  |  * The options below allow the magic key functionality to be changed. This is | ||||||
|  |  * useful if your keyboard/keypad is missing keys and you want magic key support. | ||||||
|  |  * | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | /* key combination for magic key command */ | ||||||
|  | #define IS_COMMAND() ( \ | ||||||
|  |     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | /*
 | ||||||
|  |  * Feature disable options | ||||||
|  |  *  These options are also useful to firmware size reduction. | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | /* disable debug print */ | ||||||
|  | //#define NO_DEBUG
 | ||||||
|  | 
 | ||||||
|  | /* disable print */ | ||||||
|  | //#define NO_PRINT
 | ||||||
|  | 
 | ||||||
|  | /* disable action features */ | ||||||
|  | //#define NO_ACTION_LAYER
 | ||||||
|  | //#define NO_ACTION_TAPPING
 | ||||||
|  | //#define NO_ACTION_ONESHOT
 | ||||||
|  | //#define NO_ACTION_MACRO
 | ||||||
|  | //#define NO_ACTION_FUNCTION
 | ||||||
|  | 
 | ||||||
|  | #endif | ||||||
| @ -0,0 +1,21 @@ | |||||||
|  | # Build Options
 | ||||||
|  | #   change to "no" to disable the options, or define them in the Makefile in 
 | ||||||
|  | #   the appropriate keymap folder that will get included automatically
 | ||||||
|  | #
 | ||||||
|  | BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000) | ||||||
|  | MOUSEKEY_ENABLE = yes       # Mouse keys(+4700) | ||||||
|  | EXTRAKEY_ENABLE = yes       # Audio control and System control(+450) | ||||||
|  | CONSOLE_ENABLE = no         # Console for debug(+400) | ||||||
|  | COMMAND_ENABLE = yes        # Commands for debug and configuration | ||||||
|  | NKRO_ENABLE = yes           # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||||||
|  | BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality | ||||||
|  | MIDI_ENABLE = no            # MIDI controls | ||||||
|  | AUDIO_ENABLE = no           # Audio output on port C6 | ||||||
|  | UNICODE_ENABLE = no         # Unicode | ||||||
|  | BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID | ||||||
|  | RGBLIGHT_ENABLE = no        # Enable WS2812 RGB underlight.  Do not enable this with audio at the same time. | ||||||
|  | SLEEP_LED_ENABLE = no       # Breathing sleep LED during USB suspend | ||||||
|  | 
 | ||||||
|  | ifndef QUANTUM_DIR | ||||||
|  | 	include ../../../../Makefile | ||||||
|  | endif | ||||||
| @ -0,0 +1,8 @@ | |||||||
|  | #ifndef CONFIG_USER_H | ||||||
|  | #define CONFIG_USER_H | ||||||
|  | 
 | ||||||
|  | #include "../../config.h" | ||||||
|  | 
 | ||||||
|  | // place overrides here
 | ||||||
|  | 
 | ||||||
|  | #endif | ||||||
| @ -0,0 +1,64 @@ | |||||||
|  | #include "MS-sculpt-mobile.h" | ||||||
|  | 
 | ||||||
|  | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||||||
|  | /* 
 | ||||||
|  | * | ||||||
|  | * |ESC | F1 | F2 | F3 | F4 | F5 | F6 | f7 | F8 | F9 | F10| F11| F12|Vol-|Vol+|Mute| | ||||||
|  | *  -------------------------------------------------------------------------------' | ||||||
|  | * |  ~ |  1 |  2 |  3 |  4 |  5 |  6 |  7 |  8 |  9 |  0 |  - |  = |Bakspace| Del | | ||||||
|  | * -------------------------------------------------------------------------- | ||||||
|  | * | tab  |  q |  w |  e |  r |  t |  y |  u |  i |  o |  p |  [ |  ] |  \   |     | | ||||||
|  | *  -------------------------------------------------------------------------------' | ||||||
|  | * | caps  |  a |  s |  d |  f |  g |  h |  j |  k |  l |  ; |  ' | enter     |PgUp| | ||||||
|  | * --------------------------------------------------------------------------------	 | ||||||
|  | * |Lsft    |  z |  x |  c |  v |  b |  n |  m |  , |  . |  / |      Rsft| Up| PgDn| | ||||||
|  | * ---------------------------------------------------------------------------------	 | ||||||
|  | * |Lctl   |Lgui  |Lalt |       Space          |Ralt  |  FN |  Rctl |Left|Down|Rght| | ||||||
|  | * ---------------------------------------------------------------------------------	 | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | [0] = KEYMAP( \ | ||||||
|  |    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_VOLD, KC_VOLU, KC_MUTE,\ | ||||||
|  |    KC_GRAVE, KC_1, KC_2, KC_3 ,KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQL, KC_BSPC, KC_DEL,\ | ||||||
|  |    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_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,\ | ||||||
|  |    KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,\ | ||||||
|  |    KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, RSFT(KC_1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||||||
|  | ) | ||||||
|  |   | ||||||
|  | }; | ||||||
|  | const uint16_t PROGMEM fn_actions[] = { | ||||||
|  | 
 | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||||||
|  | { | ||||||
|  |   // MACRODOWN only works in this function
 | ||||||
|  |       switch(id) { | ||||||
|  |         case 0: | ||||||
|  |           if (record->event.pressed) { | ||||||
|  |             register_code(KC_RSFT); | ||||||
|  |           } else { | ||||||
|  |             unregister_code(KC_RSFT); | ||||||
|  |           } | ||||||
|  |         break; | ||||||
|  |       } | ||||||
|  |     return MACRO_NONE; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | void matrix_init_user(void) { | ||||||
|  | 
 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | void matrix_scan_user(void) { | ||||||
|  | 
 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||||||
|  |   return true; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | void led_set_user(uint8_t usb_led) { | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1 @@ | |||||||
|  | # The default keymap for microsoft-sculpt-mobile | ||||||
| @ -0,0 +1,21 @@ | |||||||
|  | # Build Options
 | ||||||
|  | #   change to "no" to disable the options, or define them in the Makefile in 
 | ||||||
|  | #   the appropriate keymap folder that will get included automatically
 | ||||||
|  | #
 | ||||||
|  | BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000) | ||||||
|  | MOUSEKEY_ENABLE = yes       # Mouse keys(+4700) | ||||||
|  | EXTRAKEY_ENABLE = yes       # Audio control and System control(+450) | ||||||
|  | CONSOLE_ENABLE = no         # Console for debug(+400) | ||||||
|  | COMMAND_ENABLE = yes        # Commands for debug and configuration | ||||||
|  | NKRO_ENABLE = yes           # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||||||
|  | BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality | ||||||
|  | MIDI_ENABLE = no            # MIDI controls | ||||||
|  | AUDIO_ENABLE = no           # Audio output on port C6 | ||||||
|  | UNICODE_ENABLE = no         # Unicode | ||||||
|  | BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID | ||||||
|  | RGBLIGHT_ENABLE = no        # Enable WS2812 RGB underlight.  Do not enable this with audio at the same time. | ||||||
|  | SLEEP_LED_ENABLE = no       # Breathing sleep LED during USB suspend | ||||||
|  | 
 | ||||||
|  | ifndef QUANTUM_DIR | ||||||
|  | 	include ../../../../Makefile | ||||||
|  | endif | ||||||
| @ -0,0 +1,8 @@ | |||||||
|  | #ifndef CONFIG_USER_H | ||||||
|  | #define CONFIG_USER_H | ||||||
|  | 
 | ||||||
|  | #include "../../config.h" | ||||||
|  | 
 | ||||||
|  | // place overrides here
 | ||||||
|  | 
 | ||||||
|  | #endif | ||||||
							
								
								
									
										132
									
								
								keyboards/handwired/MS-sculpt-mobile/keymaps/milestogo/keymap.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								keyboards/handwired/MS-sculpt-mobile/keymaps/milestogo/keymap.c
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,132 @@ | |||||||
|  | #include "MS-sculpt-mobile.h" | ||||||
|  | 
 | ||||||
|  | #define _QWR 0 | ||||||
|  | #define _CDH 1 | ||||||
|  | #define _SYM 2 | ||||||
|  | #define _MOV 3 | ||||||
|  | #define _NUM 4  | ||||||
|  | #define _TRAN 9  | ||||||
|  | 
 | ||||||
|  | // Shorter spacing
 | ||||||
|  | #define XXXX  KC_NO | ||||||
|  | #define ____  KC_TRNS | ||||||
|  | 
 | ||||||
|  | // Custom macros
 | ||||||
|  | 
 | ||||||
|  | /* Fn Keys */ | ||||||
|  | #define TT_SYM MO(_SYM) | ||||||
|  | #define TO_CDH TG(_CDH) | ||||||
|  | #define TO_MOV MO(_MOV) | ||||||
|  | #define TT_NUM MO(_NUM) | ||||||
|  | #define SSFT ACTION_MODS_ONESHOT(MOD_LSFT) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||||||
|  | /*  QWERTY
 | ||||||
|  | * | ||||||
|  | * |ESC | F1 | F2 | F3 | F4 | F5 | F6 | f7 | F8 | F9 | F10| F11| F12|Vol-|Vol+|Mute| | ||||||
|  | *  -------------------------------------------------------------------------------' | ||||||
|  | * |  ~ |  1 |  2 |  3 |  4 |  5 |  6 |  7 |  8 |  9 |  0 |  - |  = |Bakspace| Del | | ||||||
|  | * -------------------------------------------------------------------------- | ||||||
|  | * | tab  |  q |  w |  e |  r |  t |  y |  u |  i |  o |  p |  [ |  ] |  \   |     | | ||||||
|  | *  -------------------------------------------------------------------------------' | ||||||
|  | * | caps  |  a |  s |  d |  f |  g |  h |  j |  k |  l |  ; |  ' | enter     |PgUp| | ||||||
|  | * --------------------------------------------------------------------------------	 | ||||||
|  | * |Lsft    |  z |  x |  c |  v |  b |  n |  m |  , |  . |  / |      Rsft| Up| PgDn| | ||||||
|  | * ---------------------------------------------------------------------------------	 | ||||||
|  | * |Lctl   |Lgui  |Lalt |       Space          |Ralt  |  FN |  Rctl |Left|Down|Rght| | ||||||
|  | * ---------------------------------------------------------------------------------	 | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | [_QWR] = KEYMAP( \ | ||||||
|  |    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_VOLD, KC_VOLU, TO_CDH,\ | ||||||
|  |    KC_ESC,   KC_1, KC_2, KC_3 ,KC_4, KC_5, KC_6, KC_7, KC_8,   KC_9, KC_0,    KC_MINUS, KC_EQL, KC_BSPC, KC_DEL,\ | ||||||
|  |    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,\ | ||||||
|  |    TT_SYM,  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,\ | ||||||
|  |    KC_LSFT,  KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT,KC_SLSH,KC_RSFT,  KC_UP,  KC_PGDN,\ | ||||||
|  |    KC_LCTL,  KC_LGUI, KC_LALT, KC_SPACE, KC_RGUI,TT_SYM,KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||||||
|  | ), | ||||||
|  | 
 | ||||||
|  | [_CDH] = KEYMAP (\ | ||||||
|  |    ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,     ____,  \ | ||||||
|  |    KC_ESC,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,   \ | ||||||
|  |    KC_TAB,  KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U,    KC_Y,   KC_SCLN, ____,    ____,   ____,\ | ||||||
|  |    TO_MOV,  KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E,    KC_I,   KC_O,    KC_QUOT, KC_ENT, ____,\ | ||||||
|  |    KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, ____,   ____,\ | ||||||
|  |   ____,     ____, ____ , TT_SYM, ____, ____, ____, ____, ____,   ____ | ||||||
|  | 
 | ||||||
|  | ), | ||||||
|  | 
 | ||||||
|  | [_SYM] = KEYMAP (\ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,     ____,  \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,   \ | ||||||
|  |   ____,  KC_CIRC, KC_LCBR, KC_RCBR,KC_AT, KC_PERC,         ____,   KC_LBRC,KC_LPRN,KC_RPRN,KC_UNDS,   ____,   ____,   ____,\ | ||||||
|  |   ____,  KC_EXLM, KC_HASH,  KC_0,  KC_EQL, ____,           KC_ASTR,KC_MINS,KC_1,  KC_PLUS,KC_RBRC,  KC_GRV,   ____,  ____,\ | ||||||
|  |   ____,     ____, ____, ____, KC_TILDE,  KC_PIPE,          KC_DLR,   ____, ____,   ____,   ____,     ____, ____, ____,\ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____ | ||||||
|  | ), | ||||||
|  | 
 | ||||||
|  | [_MOV] = KEYMAP (\ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,     ____,  \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,   \ | ||||||
|  |   ____,     ____, RGUI(KC_TAB), ____, ____, RCTL(KC_B), ____, ____, ____,   ____, ____,    ____,     ____,   ____, \ | ||||||
|  |   ____,     RCTL(KC_A), KC_S, RCTL(KC_K), RCTL(KC_E), ____,   ____,   KC_LEFT,KC_DOWN, KC_UP,  KC_RIGHT, ____,____,____,\ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____, \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____ | ||||||
|  | ), | ||||||
|  | 
 | ||||||
|  | [_TRAN] = KEYMAP (\ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,     ____,  \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____,    ____,   \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____, \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____, \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____, ____,    ____,     ____,   ____, \ | ||||||
|  |   ____,     ____, ____, ____, ____, ____, ____, ____, ____,   ____ | ||||||
|  | ) | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | const uint16_t PROGMEM fn_actions[] = { | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||||||
|  | { | ||||||
|  |   // MACRODOWN only works in this function
 | ||||||
|  |       switch(id) { | ||||||
|  |         case 0: | ||||||
|  |           if (record->event.pressed) { | ||||||
|  |             register_code(KC_RSFT); | ||||||
|  |           } else { | ||||||
|  |             unregister_code(KC_RSFT); | ||||||
|  |           } | ||||||
|  |         break; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |  	case KC_N: | ||||||
|  | 	  if(keyboard_report->mods & MOD_BIT(KC_LGUI) ) { | ||||||
|  | 		clear_keyboard_but_mods(); | ||||||
|  | 		register_code(KC_V); | ||||||
|  | 	  } | ||||||
|  | 	break; | ||||||
|  | 			 | ||||||
|  | 		 | ||||||
|  |       } | ||||||
|  |     return MACRO_NONE; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | void matrix_init_user(void) { | ||||||
|  | 
 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | void matrix_scan_user(void) { | ||||||
|  | 
 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||||||
|  |   return true; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | void led_set_user(uint8_t usb_led) { | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1 @@ | |||||||
|  | # A more programmer oriented keymap for microsoft-sculpt-mobile | ||||||
							
								
								
									
										58
									
								
								keyboards/handwired/MS-sculpt-mobile/readme.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								keyboards/handwired/MS-sculpt-mobile/readme.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,58 @@ | |||||||
|  | 
 | ||||||
|  | This is a way to take a Microsoft ergonomic bluetooth keyboard, and make it  | ||||||
|  | into a hard-wired keyboard running QMK.  | ||||||
|  | 
 | ||||||
|  | The keyboard is known under several different names: | ||||||
|  | Mobile Bluetooth 5000, Mobile 6000, Sculpt mobile, and Asus rebranded  | ||||||
|  | 
 | ||||||
|  | I had a stack of them,since they're cheap on ebay, travel well, and are just ergo enough.  | ||||||
|  | 
 | ||||||
|  | The ribbon cable is 1mm pitch, which is hard to hand solder. I bought a cheap set of  | ||||||
|  | "pitch adapter" boards https://www.amazon.com/Double-Sided-0-4mm-1-0-Adapter-60mmx38mm/dp/B00OK42118 | ||||||
|  | 
 | ||||||
|  | Cut the original ribbon cable sockets off the bluetooth board using a razor, they're hard to desolder.  | ||||||
|  | They're also allow the cable to be inserted on top or bottom.  | ||||||
|  | 
 | ||||||
|  | If I was going to do it again, I'd make the MCU connection come out the top of the keyboard | ||||||
|  | and avoid the wires dangling out the bottom.  | ||||||
|  | 
 | ||||||
|  | As I was debugging the matrix, I started to get random failures. In desparation I tried a second MCU,  | ||||||
|  | but had the same problems. It turns out that the ribbon cable connections can get worn. Shave a | ||||||
|  | half millimeter off the end of the ribbon cable & the errors go away.  | ||||||
|  | 
 | ||||||
|  | My method for discovering the matrix was to set up a KEYMAP macro that included all pins.  | ||||||
|  | See MATRIX_TESTING_KEYMAP if you need it. Then set up a keymap that has all printable symbols | ||||||
|  | in the first 4 rows. test each key & record output. Then switch the printable symbols to the | ||||||
|  | bottom 4 rows & repeat. This was enough to show the matrix.  | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | The full original keymap for the sculpt is  | ||||||
|  |         A       B       C       D       E       F       G       H   --->   | ||||||
|  | 0       b       n       m       ,       .       /                 | ||||||
|  | 1       g       h       "                                           | ||||||
|  | 2       7       8       9       0       Del             PgUp      | ||||||
|  | 3       p       [       ]       \                                 | ||||||
|  | 4       y       u       i       o                                       | ||||||
|  | 5       ~       -       +=      j       k       l       ;       5 | ||||||
|  | 6       a       s       d       q       w       e,      Up      left     | ||||||
|  | 7       F7      F8      F9      F10     F11     F12             f | ||||||
|  |     			 | ||||||
|  | ----->  I       J       K       L       M       N       O       P       Q       R        | ||||||
|  | 0               Caps                                                            FN       | ||||||
|  | 1                       Vol+    mute    Rctl            vol-    pgdn    LCTL             | ||||||
|  | 2                               Rshift                          LShift                   | ||||||
|  | 3                       Ralt                            LAlt                     | ||||||
|  | 4                                               LGUI                                             | ||||||
|  | 5       6       bakspc  1       2       3       4       F4      F5      F6                       | ||||||
|  | 6       Down    right                           spc     F1      F2      F3      tab              | ||||||
|  | 7       r       t       z       x       c               v       enter   Esc                      | ||||||
|  | 
 | ||||||
|  | This works with 18 cols + 8  rows on a Teensy++, or Arm based Teensy.  | ||||||
|  | 
 | ||||||
|  | The Astar mini has all pins exposed , so you can do 18x8 | ||||||
|  | If you want a speaker, LEDs &etc, you'll need to free up a pin.  I recommend joining columns | ||||||
|  | R and L to the same pin.  | ||||||
|  | 
 | ||||||
|  | Building - edit rules.mk to set ASTAR=1 or comment it out for teensy2++ | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
							
								
								
									
										43
									
								
								keyboards/handwired/MS-sculpt-mobile/rules.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								keyboards/handwired/MS-sculpt-mobile/rules.mk
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,43 @@ | |||||||
|  | #CFLAGS=-D ASTAR
 | ||||||
|  | 
 | ||||||
|  | ifdef ASTAR | ||||||
|  |  OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||||||
|  |  MCU = atmega32u4 | ||||||
|  |  OPT_DEFS += -DCATERINA_BOOTLOADER | ||||||
|  |  SCULPT_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done ; \
 | ||||||
|  | 		 avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB) | ||||||
|  | 
 | ||||||
|  | else | ||||||
|  |  MCU = at90usb1286 | ||||||
|  |  OPT_DEFS += -DBOOTLOADER_SIZE=2048 | ||||||
|  |  SCULPT_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex | ||||||
|  | endif | ||||||
|  | 
 | ||||||
|  | F_CPU = 16000000 | ||||||
|  | ARCH = AVR8 | ||||||
|  | F_USB = $(F_CPU) | ||||||
|  | # Interrupt driven control endpoint task(+60)
 | ||||||
|  | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||||||
|  | 
 | ||||||
|  | #
 | ||||||
|  | BOOTMAGIC_ENABLE ?= no      # Virtual DIP switch configuration(+1000) | ||||||
|  | MOUSEKEY_ENABLE ?= no       # Mouse keys(+4700) | ||||||
|  | EXTRAKEY_ENABLE ?= yes       # Audio control and System control(+450) | ||||||
|  | CONSOLE_ENABLE ?= yes        # Console for debug(+400) | ||||||
|  | COMMAND_ENABLE ?= yes        # Commands for debug and configuration | ||||||
|  | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
 | ||||||
|  | SLEEP_LED_ENABLE ?= no       # Breathing sleep LED during USB suspend | ||||||
|  | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
 | ||||||
|  | NKRO_ENABLE ?= no            # USB Nkey Rollover | ||||||
|  | BACKLIGHT_ENABLE ?= no       # Enable keyboard backlight functionality on B7 by default | ||||||
|  | MIDI_ENABLE ?= no            # MIDI controls | ||||||
|  | UNICODE_ENABLE ?= no         # Unicode | ||||||
|  | BLUETOOTH_ENABLE ?= no       # Enable Bluetooth with the Adafruit EZ-Key HID | ||||||
|  | AUDIO_ENABLE ?= no           # Audio output on port C6 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | USB ?= /dev/cu.usbmodem1421 | ||||||
|  |   | ||||||
|  | 
 | ||||||
|  | upload: build | ||||||
|  | 	$(SCULPT_UPLOAD_COMMAND) | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 milestogo
						milestogo