summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Zolotarev <hi@romanzolotarev.com>2016-04-26 16:23:10 +0800
committerRoman Zolotarev <hi@romanzolotarev.com>2016-04-26 16:23:10 +0800
commit28f0b64e31b8c30a842dfd356421356cf0513177 (patch)
treee5a76f4a2fb747c3599de1e297f46e4dc6fd4f0e
parentfa2eedb7bd906634b8c500ba0d91638e63eaafed (diff)
parentbf56838fe99aafd37559d560e47b707a83c87588 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
-rw-r--r--1-setup-path-win.bat10
-rw-r--r--2-setup-environment-win.bat80
-rw-r--r--README.md123
-rw-r--r--keyboard/atomic/Makefile92
-rw-r--r--keyboard/atomic/atomic.c31
-rw-r--r--keyboard/atomic/atomic.h3
-rw-r--r--keyboard/atomic/backlight.c2
-rw-r--r--keyboard/atomic/config.h93
-rw-r--r--keyboard/atomic/keymaps/default.c283
-rw-r--r--keyboard/atomic/keymaps/pvc/config.h161
-rw-r--r--keyboard/atomic/keymaps/pvc/keymap.c509
-rw-r--r--keyboard/atomic/keymaps/pvc/makefile.mk17
-rw-r--r--keyboard/ergodox_ez/keymaps/erez_experimental/erez_experimental.hex2156
-rw-r--r--keyboard/ergodox_ez/keymaps/erez_experimental/keymap.c45
-rw-r--r--keyboard/ergodox_ez/keymaps/j3rn/keymap.c31
-rw-r--r--keyboard/ergodox_ez/keymaps/j3rn/readme.md7
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/keymap.c555
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-base.pngbin94771 -> 99031 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-base.txt14
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-media.pngbin108774 -> 121014 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-media.txt44
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-symbol.pngbin93001 -> 103401 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-symbol.txt44
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary.hex2307
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/readme.md71
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de/keymap.c699
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de/osx_de.hex2426
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de/osx_de_highres.pngbin684862 -> 298446 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de/readme.md13
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de_adnw_koy/keymap.c373
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de_adnw_koy/osx_de_adnw_koy.hex2291
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de_adnw_koy/osx_de_adnw_koy_highres.pngbin0 -> 183892 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de_experimental/keymap.c376
-rw-r--r--keyboard/ergodox_ez/keymaps/osx_de_experimental/osx_de_experimental_highres.pngbin0 -> 289029 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/plums/keymap.c229
-rw-r--r--keyboard/ergodox_ez/keymaps/plums/plums.hex1159
-rw-r--r--keyboard/ergodox_ez/keymaps/plums/plums.pngbin0 -> 223300 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/plums/readme.md11
-rw-r--r--keyboard/ergodox_ez/keymaps/twey/keymap.c225
-rw-r--r--keyboard/ergodox_ez/keymaps/twey/readme.md19
-rw-r--r--keyboard/ergodox_ez/keymaps/twey/twey.hex1122
-rw-r--r--keyboard/hhkb/rn42/rn42_task.c2
-rw-r--r--keyboard/planck/Makefile71
-rw-r--r--keyboard/planck/config.h4
-rw-r--r--keyboard/planck/keymaps/bone2planck.c112
-rw-r--r--keyboard/planck/keymaps/default/README.md32
-rw-r--r--keyboard/planck/keymaps/default/keymap.c317
-rw-r--r--keyboard/planck/keymaps/default/makefile.mk2
-rw-r--r--keyboard/planck/keymaps/nico.c69
-rw-r--r--keyboard/planck/keymaps/pvc_planck.c179
-rw-r--r--keyboard/planck/keymaps/tak3over.c82
-rw-r--r--keyboard/planck/planck_pcb_r3.hex (renamed from keyboard/planck/planck_pcb.hex)0
-rwxr-xr-xkeyboard/planck/planck_pcb_r3_w_bootloader.hex (renamed from keyboard/planck/planck_with_bootloader.hex)0
-rw-r--r--keyboard/planck/planck_pcb_r4.hex1628
-rw-r--r--keyboard/planck/planck_pcb_r4_w_bootloader.hex1880
-rw-r--r--keyboard/preonic/Makefile55
-rw-r--r--keyboard/preonic/config.h4
-rw-r--r--keyboard/preonic/keymaps/default/README.md35
-rw-r--r--keyboard/preonic/keymaps/default/keymap.c330
-rw-r--r--keyboard/preonic/keymaps/default/makefile.mk1
-rw-r--r--keyboard/preonic/preonic_music.hex1713
-rw-r--r--keyboard/preonic/preonic_pcb_r1.hex (renamed from keyboard/preonic/preonic_pcb.hex)0
-rw-r--r--keyboard/preonic/preonic_pcb_r1_w_bootloader.hex1863
-rw-r--r--keyboard/preonic/preonic_pcb_silent.hex1189
-rw-r--r--keyboard/retro_refit/retro_refit.c32
-rw-r--r--quantum/audio.c365
-rw-r--r--quantum/audio.h11
-rw-r--r--quantum/audio/audio.c607
-rw-r--r--quantum/audio/audio.h89
-rw-r--r--quantum/audio/frequency_lut.h357
-rw-r--r--quantum/audio/musical_notes.h217
-rw-r--r--quantum/audio/song_list.h117
-rw-r--r--quantum/audio/vibrato_lut.h28
-rw-r--r--quantum/audio/voices.c163
-rw-r--r--quantum/audio/voices.h32
-rw-r--r--quantum/audio/wave.h (renamed from quantum/wave.h)0
-rw-r--r--quantum/keymap_common.c274
-rw-r--r--quantum/keymap_common.h36
-rw-r--r--quantum/keymap_extras/keymap_german_osx.h4
-rw-r--r--quantum/keymap_extras/keymap_plover.h32
-rw-r--r--quantum/keymap_midi.h2
-rw-r--r--quantum/led.c1
-rw-r--r--quantum/quantum.mk12
-rw-r--r--quantum/rgblight.c20
-rw-r--r--quantum/rgblight.h4
-rw-r--r--quantum/tools/README.md6
-rw-r--r--quantum/tools/eeprom_reset.hex9
-rw-r--r--tmk_core/common.mk30
-rw-r--r--tmk_core/common/action.c8
-rw-r--r--tmk_core/common/action_code.h2
-rw-r--r--tmk_core/common/action_layer.c20
-rw-r--r--tmk_core/common/action_layer.h1
-rw-r--r--tmk_core/common/action_macro.c8
-rw-r--r--tmk_core/common/action_tapping.c11
-rw-r--r--tmk_core/common/avr/eeconfig.c32
-rw-r--r--tmk_core/common/avr/suspend.c13
-rw-r--r--tmk_core/common/backlight.c10
-rw-r--r--tmk_core/common/bootmagic.c6
-rw-r--r--tmk_core/common/command.c32
-rw-r--r--tmk_core/common/eeconfig.h14
-rw-r--r--tmk_core/common/keyboard.c8
-rw-r--r--tmk_core/common/keymap.c3
-rw-r--r--tmk_core/common/keymap.h3
-rw-r--r--tmk_core/common/magic.c36
-rw-r--r--tmk_core/common/magic.h6
-rw-r--r--tmk_core/common/print.h12
-rw-r--r--tmk_core/protocol/lufa.mk4
-rw-r--r--tmk_core/protocol/lufa/LUFA-git/Bootloaders/CDC/BootloaderCDC.c4
-rw-r--r--tmk_core/protocol/lufa/LUFA-git/Bootloaders/DFU/BootloaderDFU.c2
-rw-r--r--tmk_core/protocol/lufa/lufa.c18
110 files changed, 18629 insertions, 9261 deletions
diff --git a/1-setup-path-win.bat b/1-setup-path-win.bat
index 2c15857bb7..f612d0f4a7 100644
--- a/1-setup-path-win.bat
+++ b/1-setup-path-win.bat
@@ -5,8 +5,14 @@ SET CMDLINERUNSTR=%SystemRoot%\system32\cmd.exe
SET NEWPATH1="C:\MinGW\msys\1.0\bin"
SET NEWPATH2="C:\MinGW\bin"
-:: Make sure paths exist
-IF NOT EXIST !NEWPATH1! (ECHO Path not found: %NEWPATH1% && GOTO ExitBatch)
+:: Make sure we're running with administrator privileges
+NET SESSION >nul 2>&1
+IF ERRORLEVEL 1 (
+ ECHO FAILED. Run this script with administrator privileges.
+ GOTO ExitBatch
+)
+
+:: Make sure the second path exists. The first path won't be created until the second script is run
IF NOT EXIST !NEWPATH2! (ECHO Path not found: %NEWPATH2% && GOTO ExitBatch)
:: Add paths
diff --git a/2-setup-environment-win.bat b/2-setup-environment-win.bat
index 91b6c91e39..905338087a 100644
--- a/2-setup-environment-win.bat
+++ b/2-setup-environment-win.bat
@@ -1,41 +1,63 @@
-@echo off
-setx /M test test > nul 2>&1
-if NOT ["%errorlevel%"]==["0"] (
- echo FAILED. Rerun with administrator privileges.
- pause
- exit
+@SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
+@ECHO OFF
+
+SET STARTINGDIR=%CD%
+
+:: Check for admin privilages
+SETX /M test test > nul 2>&1
+IF NOT ["%ERRORLEVEL%"]==["0"] (
+ ECHO FAILED. Rerun with administrator privileges.
+ GOTO ExitBatch
)
-echo ------------------------------------------
-echo Installing wget and unzip
-echo ------------------------------------------
+:: Make sure path to MinGW exists - if so, CD to it
+SET MINGWPATH="C:\MinGW\bin"
+IF NOT EXIST !MINGWPATH! (ECHO Path not found: %MINGWPATH% && GOTO ExitBatch)
+CD /D %MINGWPATH%
+
+
+ECHO ------------------------------------------
+ECHO Installing wget and unzip
+ECHO ------------------------------------------
mingw-get install msys-wget-bin msys-unzip-bin
-cd \MinGW\bin
-mkdir temp
-cd temp
-echo ------------------------------------------
-echo Installing dfu-programmer.
-echo ------------------------------------------
+MKDIR temp
+CD temp
+
+ECHO ------------------------------------------
+ECHO Installing dfu-programmer.
+ECHO ------------------------------------------
wget http://iweb.dl.sourceforge.net/project/dfu-programmer/dfu-programmer/0.7.2/dfu-programmer-win-0.7.2.zip
unzip dfu-programmer-win-0.7.2.zip
-copy dfu-programmer.exe ..
+COPY dfu-programmer.exe ..
-echo ------------------------------------------
-echo Downloading driver
-echo ------------------------------------------
+ECHO ------------------------------------------
+ECHO Downloading driver
+ECHO ------------------------------------------
wget http://iweb.dl.sourceforge.net/project/libusb-win32/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip
unzip libusb-win32-bin-1.2.6.0.zip
-cp libusb-win32-bin-1.2.6.0\bin\x86\libusb0_x86.dll ../libusb0.dll
+COPY libusb-win32-bin-1.2.6.0\bin\x86\libusb0_x86.dll ../libusb0.dll
+
+ECHO ------------------------------------------
+ECHO Installing driver. Accept prompt.
+ECHO ------------------------------------------
+IF EXIST "%WinDir%\System32\PnPUtil.exe" (%WinDir%\System32\PnPUtil.exe -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf && GOTO PNPUTILFOUND)
+IF EXIST "%WinDir%\Sysnative\PnPUtil.exe" (%WinDir%\Sysnative\PnPUtil.exe -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf && GOTO PNPUTILFOUND)
+
+ECHO FAILED. Could not find PnPUtil.exe in "%WinDir%\System32" or "%WinDir%\Sysnative".
+
+:PNPUTILFOUND
-echo ------------------------------------------
-echo Installing driver. Accept prompt.
-echo ------------------------------------------
-pnputil -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf
+:: Wait then delete directory
+ping -n 5 127.0.0.1 > NUL 2>&1
+CD ..
+RD /s /q temp
-cd ..
-rm -rf temp
+ECHO ------------------------------------------
+ECHO Finished!
-echo ------------------------------------------
-echo Finished!
-pause \ No newline at end of file
+:ExitBatch
+CD /D %STARTINGDIR%
+ENDLOCAL
+PAUSE
+EXIT /b \ No newline at end of file
diff --git a/README.md b/README.md
index ab7373023a..749c97c8f1 100644
--- a/README.md
+++ b/README.md
@@ -16,13 +16,21 @@ The documentation below explains QMK customizations and elaborates on some of th
* If you're looking to customize a keyboard that currently runs QMK or TMK, find your keyboard's directory under `keyboard/` and run the make commands from there.
* If you're looking to apply this firmware to an entirely new hardware project (a new kind of keyboard), you can create your own Quantum-based project by using `./new_project.sh <project_name>`, which will create `/keyboard/<project_name>` with all the necessary components for a Quantum project.
+### Makefile Options
+
You have access to a bunch of goodies! Check out the Makefile to enable/disable some of the features. Uncomment the `#` to enable them. Setting them to `no` does nothing and will only confuse future you.
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
MIDI_ENABLE = yes # MIDI controls
- # UNICODE_ENABLE = yes # Unicode support - this is commented out, just as an example. You have to use #, not //
+ UNICODE_ENABLE = no # <-- This is how you disable an option, just set it to "no"
BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID
+### Customizing Makefile options on a per-keymap basis
+
+If your keymap directory has a file called `makefile.mk` (note the lowercase filename, and the `.mk` extension), any Makefile options you set in that file will take precedence over other Makefile options (those set for Quantum as a whole or for your particular keyboard).
+
+So let's say your keyboard's makefile has `CONSOLE_ENABLE = yes` (or maybe doesn't even list the `CONSOLE_ENABLE` option, which would cause it to revert to the global Quantum default). You want your particular keymap to not have the debug console, so you make a file called `makefile.mk` and specify `CONSOLE_ENABLE = no`.
+
## Quick aliases to common actions
Your keymap can include shortcuts to common operations (called "function actions" in tmk).
@@ -199,6 +207,27 @@ This will clear all mods currently pressed.
This will clear all keys besides the mods currently pressed.
+* `update_tri_layer(layer_1, layer_2, layer_3);`
+
+If the user attempts to activate layer 1 AND layer 2 at the same time (for example, by hitting their respective layer keys), layer 3 will be activated. Layers 1 and 2 will _also_ be activated, for the purposes of fallbacks (so a given key will fall back from 3 to 2, to 1 -- and only then to 0).
+
+#### Naming your macros
+
+If you have a bunch of macros you want to refer to from your keymap, while keeping the keymap easily readable, you can just name them like so:
+
+```
+#define AUD_OFF M(6)
+#define AUD_ON M(7)
+#define MUS_OFF M(8)
+#define MUS_ON M(9)
+#define VC_IN M(10)
+#define VC_DE M(11)
+#define PLOVER M(12)
+#define EXT_PLV M(13)
+```
+
+As was done on the [Planck default keymap](/keyboard/planck/keymaps/default/keymap.c#L33-L40)
+
#### Timer functionality
It's possible to start timers and read values for time-specific events - here's an example:
@@ -215,11 +244,91 @@ if (timer_elapsed(key_timer) < 100) {