update ymdk96 files
This commit is contained in:
		
							parent
							
								
									ac5326595c
								
							
						
					
					
						commit
						141a52982e
					
				
					 3 changed files with 22 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -10,7 +10,7 @@ using Bootmapper Client to change any keyboard settings, since not all the
 | 
			
		|||
USB report options are supported.  
 | 
			
		||||
 | 
			
		||||
Here is the default layout, it is fairly simple with a few function keys: 
 | 
			
		||||
  
 | 
			
		||||
  
 | 
			
		||||
If you have a different layout (since there were many options during the GB), please feel free to contribute!  
 | 
			
		||||
 | 
			
		||||
Keyboard maintainer: [Andrew](https://github.com/sparkyman215)  
 | 
			
		||||
| 
						 | 
				
			
			@ -29,27 +29,18 @@ This firmware was modified from [ps2avrGB](https://github.com/qmk/qmk_firmware/t
 | 
			
		|||
 | 
			
		||||
## Installing and Building
 | 
			
		||||
 | 
			
		||||
First, install the requirements. These commands are for OSX, but all you
 | 
			
		||||
need is the AVR toolchain and `bootloadHID` for flashing:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ brew cask install crosspack-avr
 | 
			
		||||
$ brew install --HEAD https://raw.githubusercontent.com/robertgzr/homebrew-tap/master/bootloadhid.rb
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
In order to use the `./program` script, which can reboot the board into
 | 
			
		||||
the bootloader, you'll need Python 2 with PyUSB installed:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ pip install pyusb
 | 
			
		||||
```
 | 
			
		||||
Since the YMD96 uses an ATmega32a chip instead of the 32u4, you need to download [HIDBootFlash v.1.0](http://vusb.wikidot.com/project:hidbootflash) for Windows. If anyone knows of a Linux/Mac bootflasher that works, edit this readme!  
 | 
			
		||||
On Windows, I use [MINGw](http://www.mingw.org/) to compile the keymaps. On Linux, you can simply use the terminal. 
 | 
			
		||||
 | 
			
		||||
Once you have those two pieces of software:
 | 
			
		||||
Build the keyboard with  
 | 
			
		||||
```
 | 
			
		||||
$ make ymd96:default  
 | 
			
		||||
$ make ymd96-default  
 | 
			
		||||
```  
 | 
			
		||||
If you make your own layout, change the `default` word to whatever your layout is.  
 | 
			
		||||
 | 
			
		||||
And flash the compiled hex file with `HIDBootFlash`. Simply put the board in flashing mode by plugging it in while holding control, and click `find device`. Then you can specify the .hex file and flash it to the device. 
 | 
			
		||||
 | 
			
		||||
## Troubleshooting
 | 
			
		||||
 | 
			
		||||
From my experience, it's really hard to brick these boards. But these
 | 
			
		||||
| 
						 | 
				
			
			@ -60,3 +51,5 @@ tricks have been useful when it got stuck in a weird scenario.
 | 
			
		|||
   done, just reflash the board with the original firmware.
 | 
			
		||||
2. Sometimes USB hubs can act weird, so try connecting the board directly
 | 
			
		||||
   to your computer or plugging/unplugging the USB hub.
 | 
			
		||||
   
 | 
			
		||||
Lastly, if you still need help, you can add me on Discord and I'll be happy to help.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,10 +31,13 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define MATRIX_COLS 15
 | 
			
		||||
#define DIODE_DIRECTION ROW2COL
 | 
			
		||||
 | 
			
		||||
#define RGBLED_NUM 20
 | 
			
		||||
#define RGB_DI_PIN C4
 | 
			
		||||
#define RGBLED_NUM 18
 | 
			
		||||
#define RGBLIGHT_ANIMATIONS
 | 
			
		||||
#define RGBLIGHT_VAL_STEP 20
 | 
			
		||||
 | 
			
		||||
#define NO_UART 1
 | 
			
		||||
#define BOOTLOADHID_BOOTLOADER 1
 | 
			
		||||
 | 
			
		||||
/* key combination for command */
 | 
			
		||||
#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,7 +32,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		|||
	*  |   Tab   |   Q  |   W  |   E  |   R  |   T  |   Y  |   U  |   I  |   O  |    P |    { |    } |     \    |  7   |   8  |   9  |   -  | 18 keys
 | 
			
		||||
	*  |   Caps   |   A  |   S  |   D  |   F  |   G  |   H  |   J  |   K  |   L  |    ; |   '  |     Return     |  4   |   5  |   6  |   +  | 17 keys
 | 
			
		||||
	*  |    LShft     |   Z  |   X  |   C  |   V  |   B  |   N  |   M  |   ,  |   .  |   /  |       RShft       |  1   |   2  |   3  |  En  | 16 keys
 | 
			
		||||
	*  | Ctrl  |  Win  |  Alt  |                  Space                      |  Fn  |  Win | Left | Down |  Up  | Right|   0  |   .  |  ter | 12 keys
 | 
			
		||||
	*  | Ctrl  |  Win  |  Alt  |                  Space                      |  Fn  |  Win | Left | Down |  Up  | Right|   0  |   .  |      | 12 keys
 | 
			
		||||
	*/
 | 
			
		||||
	
 | 
			
		||||
    [_DEFLT] = KEYMAP(
 | 
			
		||||
| 
						 | 
				
			
			@ -46,17 +46,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		|||
	/* Layer 1, raise layer
 | 
			
		||||
	*  |      |      |      |      |      |      |      |      |      |      |      |      |      |      |      |      |      |      |      |
 | 
			
		||||
	*  |      |      |      |      |      |      |      |      |      |      |      |      |      |             |      |      |      |      |
 | 
			
		||||
	*  |         |      |      |      |      |      |      |      |      |      |      |      |      |          |      |      |      |      |
 | 
			
		||||
	*  |         |      |rgb_up|rgb_dn|rgb_mo|      |      |      |      |      |  F22 |  F23  |  F24 |         |      |      |      |      |
 | 
			
		||||
	*  |          |      |      |      |      |      |      |      |      |      |      |      |                |      |      |      |      |
 | 
			
		||||
	*  |              |      |      |      |      |      |      |      | VolDn| VolUp| Mute |     Play/Pause    |      |      |      |      |
 | 
			
		||||
	*  |       |       |       |                                             |      |      |      |      |      |      |      |      |      |
 | 
			
		||||
	*  |       |       |       |                                             |      |      |MPrev |      |      | MNext|      |      |      |
 | 
			
		||||
	*/ 
 | 
			
		||||
	[_RAISE] = KEYMAP(
 | 
			
		||||
			______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______, \
 | 
			
		||||
			______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,           ______,  ______,  ______,  ______, \
 | 
			
		||||
			______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  KC_F22,  KC_F23,  KC_F24,  ______,  ______,  ______,  ______,  ______, \
 | 
			
		||||
			______,  ______, RGB_VAI, RGB_VAD, RGB_MOD,  ______,  ______,  ______,  ______,  ______,  KC_F22,  KC_F23,  KC_F24,  ______,           ______,  ______,  ______,  ______, \
 | 
			
		||||
			______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,           ______,           ______,  ______,  ______,  ______, \
 | 
			
		||||
			______,  ______,  ______,  ______,  ______,  ______,  ______,  ______,  KC_VOLD,KC_VOLU, KC_MUTE,                   KC_MPLY,           ______,  ______,  ______,  ______, \
 | 
			
		||||
		    ______,  ______,  ______,                              ______,                        ______,  ______,  ______,  ______,  ______,  ______,  ______,  ______  \
 | 
			
		||||
		    ______,  ______,  ______,                                  ______,                                 ______,  ______, KC_MPRV,  ______,  ______, KC_MNXT,  ______,  ______  \
 | 
			
		||||
	)
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue