summaryrefslogtreecommitdiffstats
path: root/keyboard
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-05-02 23:15:56 -0500
committerIBNobody <ibnobody@gmail.com>2016-05-02 23:15:56 -0500
commit35d7081899df3a486b9b5785c7e8ec9481195848 (patch)
tree682a322ce2c3e2004abb4fbd00fc00316277b935 /keyboard
parent499e3096e9021b88a6a705ad7034ccbacb97b975 (diff)
parent2c070163ffffffde546fb00acaa2fbb96b93da64 (diff)
Merge remote-tracking branch 'refs/remotes/jackhumbert/master'
Diffstat (limited to 'keyboard')
-rw-r--r--keyboard/atomic/Makefile6
-rw-r--r--keyboard/atomic/atomic.c61
-rw-r--r--keyboard/atomic/atomic.h5
-rw-r--r--keyboard/atomic/backlight.c63
-rw-r--r--keyboard/atomic/keymaps/pvc/config.h4
-rw-r--r--keyboard/atomic/keymaps/pvc/keymap.c240
-rw-r--r--keyboard/clueboard1/Makefile137
-rw-r--r--keyboard/clueboard1/clueboard1.c23
-rw-r--r--keyboard/clueboard1/clueboard1.h52
-rw-r--r--keyboard/clueboard1/config.h96
-rw-r--r--keyboard/clueboard1/keymaps/keymap_default.c184
-rw-r--r--keyboard/clueboard1/led.c32
-rw-r--r--keyboard/clueboard2/Makefile141
-rw-r--r--keyboard/clueboard2/backlight.c41
-rw-r--r--keyboard/clueboard2/clueboard2.c44
-rw-r--r--keyboard/clueboard2/clueboard2.h57
-rw-r--r--keyboard/clueboard2/config.h100
-rw-r--r--keyboard/clueboard2/keymaps/keymap_default.c183
-rw-r--r--keyboard/clueboard2/keymaps/keymap_max.c147
-rw-r--r--keyboard/clueboard2/keymaps/keymap_skully.c108
-rw-r--r--keyboard/clueboard2/led.c36
-rw-r--r--keyboard/cluepad/Makefile136
-rw-r--r--keyboard/cluepad/backlight.c54
-rw-r--r--keyboard/cluepad/cluepad.c39
-rw-r--r--keyboard/cluepad/cluepad.h41
-rw-r--r--keyboard/cluepad/config.h102
-rw-r--r--keyboard/cluepad/keymaps/keymap_default.c122
-rw-r--r--keyboard/ergodox_ez/keymaps/ab/ab.hex1146
-rw-r--r--keyboard/ergodox_ez/keymaps/ab/keyboard-layout.json385
-rw-r--r--keyboard/ergodox_ez/keymaps/ab/keyboard-layout.pngbin0 -> 79440 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/ab/keymap.c140
-rw-r--r--keyboard/ergodox_ez/keymaps/ab/readme.md21
-rw-r--r--keyboard/ergodox_ez/keymaps/erez_experimental/erez_experimental.hex2156
-rw-r--r--keyboard/ergodox_ez/keymaps/erez_experimental/keymap.c59
-rw-r--r--keyboard/ergodox_ez/keymaps/erez_experimental/readme.md9
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/keymap.c423
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-media.pngbin119139 -> 121014 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-media.txt22
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-symbol.pngbin98257 -> 103401 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary-symbol.txt36
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/ordinary.hex2165
-rw-r--r--keyboard/ergodox_ez/keymaps/ordinary/readme.md17
-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/romanzolotarev-norman-osx/keymap.c45
-rw-r--r--keyboard/ergodox_ez/keymaps/romanzolotarev-norman-osx/readme.md28
-rw-r--r--keyboard/ergodox_ez/keymaps/romanzolotarev-norman-osx/romanzolotarev-norman-osx.hex1092
-rw-r--r--keyboard/ergodox_ez/keymaps/romanzolotarev-norman-osx/romanzolotarev-norman-osx.pngbin0 -> 96954 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/romanzolotarev-norman-qwerty-osx/keymap.c73
-rw-r--r--keyboard/ergodox_ez/keymaps/romanzolotarev-norman-qwerty-osx/readme.md34
-rw-r--r--keyboard/ergodox_ez/keymaps/romanzolotarev-norman-qwerty-osx/romanzolotarev-norman-qwerty-osx.hex1139
-rw-r--r--keyboard/ergodox_ez/keymaps/romanzolotarev-norman-qwerty-osx/romanzolotarev-norman-qwerty-osx.pngbin0 -> 100627 bytes
-rw-r--r--keyboard/ergodox_ez/keymaps/sneako/README.md6
-rw-r--r--keyboard/ergodox_ez/keymaps/sneako/keymap.c187
-rw-r--r--keyboard/ergodox_ez/keymaps/sneako/sneako.hex1152
-rw-r--r--keyboard/ergodox_ez/keymaps/techtomas/keymap.c231
-rw-r--r--keyboard/ergodox_ez/keymaps/techtomas/readme.md36
-rw-r--r--keyboard/ergodox_ez/keymaps/techtomas/techtomas.hex1166
-rw-r--r--keyboard/ergodox_ez/keymaps/twey/keymap.c217
-rw-r--r--keyboard/ergodox_ez/keymaps/twey/readme.md19
-rw-r--r--keyboard/ergodox_ez/keymaps/twey/twey.hex1122
-rw-r--r--keyboard/ergodox_ez/keymaps/zweihander-osx/keymap.c184
-rw-r--r--keyboard/ergodox_ez/keymaps/zweihander-osx/readme.markdown45
-rw-r--r--keyboard/ergodox_ez/keymaps/zweihander-osx/zweihander-osx.hex1152
-rw-r--r--keyboard/ergodox_ez/readme.md2
-rw-r--r--keyboard/gh60_rev_c/Makefile140
-rw-r--r--keyboard/gh60_rev_c/README.md60
-rw-r--r--keyboard/gh60_rev_c/config.h157
-rw-r--r--keyboard/gh60_rev_c/gh60.c67
-rw-r--r--keyboard/gh60_rev_c/gh60.h81
-rw-r--r--keyboard/gh60_rev_c/gh60revc.jpgbin0 -> 1424987 bytes
-rw-r--r--keyboard/gh60_rev_c/keymaps/default.c69
-rw-r--r--keyboard/gh60_rev_c/pinout.txt18
-rw-r--r--keyboard/hhkb/rn42/rn42_task.c2
-rw-r--r--keyboard/planck/Makefile4
-rw-r--r--keyboard/planck/backlight.c61
-rw-r--r--keyboard/planck/keymaps/default/keymap.c182
-rw-r--r--keyboard/planck/keymaps/default/makefile.mk3
-rw-r--r--keyboard/planck/keymaps/pvc/config.h88
-rw-r--r--keyboard/planck/keymaps/pvc/keymap.c536
-rw-r--r--keyboard/planck/keymaps/pvc/makefile.mk16
-rw-r--r--keyboard/planck/keymaps/pvc_planck.c179
-rw-r--r--keyboard/planck/planck.c61
-rw-r--r--keyboard/planck/planck.h1
-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.hex1645
-rw-r--r--keyboard/planck/planck_pcb_r4_w_bootloader.hex1897
-rw-r--r--keyboard/preonic/Makefile5
-rw-r--r--keyboard/preonic/backlight.c61
-rw-r--r--keyboard/preonic/keymaps/default/keymap.c129
-rw-r--r--keyboard/preonic/preonic.c63
-rw-r--r--keyboard/preonic/preonic.h1
-rw-r--r--keyboard/preonic/preonic_music.hex1713
-rw-r--r--keyboard/preonic/preonic_pcb.hex1702
-rw-r--r--keyboard/preonic/preonic_pcb_r1.hex1628
-rw-r--r--keyboard/preonic/preonic_pcb_r1_w_bootloader.hex1880
-rw-r--r--keyboard/preonic/preonic_pcb_silent.hex1189
109 files changed, 27426 insertions, 10552 deletions
diff --git a/keyboard/atomic/Makefile b/keyboard/atomic/Makefile
index 3f066aebcd..c1a0a6db42 100644
--- a/keyboard/atomic/Makefile
+++ b/keyboard/atomic/Makefile
@@ -142,7 +142,7 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
-CONSOLE_ENABLE = yes # Console for debug(+400)
+CONSOLE_ENABLE = no # Console for debug(+400)
COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
@@ -171,10 +171,6 @@ endif
endif
-ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
- SRC := backlight.c $(SRC)
-endif
-
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax
diff --git a/keyboard/atomic/atomic.c b/keyboard/atomic/atomic.c
index 5e31264e68..3996497161 100644
--- a/keyboard/atomic/atomic.c
+++ b/keyboard/atomic/atomic.c
@@ -57,3 +57,64 @@ void led_set_kb(uint8_t usb_led) {
led_set_user(usb_led);
}
+
+#ifdef BACKLIGHT_ENABLE
+#define CHANNEL OCR1C
+
+void backlight_init_ports()
+{
+
+ // Setup PB7 as output and output low.
+ DDRB |= (1<<7);
+ PORTB &= ~(1<<7);
+
+ // Use full 16-bit resolution.
+ ICR1 = 0xFFFF;
+
+ // I could write a wall of text here to explain... but TL;DW
+ // Go read the ATmega32u4 datasheet.
+ // And this: http://blog.saikoled.com/post/43165849837/secret-konami-cheat-code-to-high-resolution-pwm-on
+
+ // Pin PB7 = OCR1C (Timer 1, Channel C)
+ // Compare Output Mode = Clear on compare match, Channel C = COM1C1=1 COM1C0=0
+ // (i.e. start high, go low when counter matches.)
+ // WGM Mode 14 (Fast PWM) = WGM13=1 WGM12=1 WGM11=1 WGM10=0
+ // Clock Select = clk/1 (no prescaling) = CS12=0 CS11=0 CS10=1
+
+ TCCR1A = _BV(COM1C1) | _BV(WGM11); // = 0b00001010;
+ TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS10); // = 0b00011001;
+
+ backlight_init();
+}
+
+void backlight_set(uint8_t level)
+{
+ if ( level == 0 )
+ {
+ // Turn off PWM control on PB7, revert to output low.
+ TCCR1A &= ~(_BV(COM1C1));
+ CHANNEL = 0x0;
+ // Prevent backlight blink on lowest level
+ PORTB &= ~(_BV(PORTB7));
+ }
+ else if ( level == BACKLIGHT_LEVELS )
+ {
+ // Prevent backlight blink on lowest level
+ PORTB &= ~(_BV(PORTB7));
+ // Turn on PWM control of PB7
+ TCCR1A |= _BV(COM1C1);
+ // Set the brightness
+ CHANNEL = 0xFFFF;
+ }
+ else
+ {
+ // Prevent backlight blink on lowest level
+ PORTB &= ~(_BV(PORTB7));
+ // Turn on PWM control of PB7
+ TCCR1A |= _BV(COM1C1);
+ // Set the brightness
+ CHANNEL = 0xFFFF >> ((BACKLIGHT_LEVELS - level) * ((BACKLIGHT_LEVELS + 1) / 2));
+ }
+}
+
+#endif \ No newline at end of file
diff --git a/keyboard/atomic/atomic.h b/keyboard/atomic/atomic.h
index d5461e424d..0c7aeb1cc8 100644
--- a/keyboard/atomic/atomic.h
+++ b/keyboard/atomic/atomic.h
@@ -3,8 +3,11 @@
#include "matrix.h"
#include "keymap_common.h"
-#include "backlight.h"
+#ifdef BACKLIGHT_ENABLE
+ #include "backlight.h"
+#endif
#include <stddef.h>
+#include <avr/io.h>
// This a shortcut to help you visually see your layout.
// The following is an example using the Planck MIT layout
diff --git a/keyboard/atomic/backlight.c b/keyboard/atomic/backlight.c
deleted file mode 100644
index 647b57e718..0000000000
--- a/keyboard/atomic/backlight.c
+++ /dev/null
@@ -1,63 +0,0 @@
-
-#include <avr/io.h>
-#include "backlight.h"
-#include "atomic.h"
-
-
-#define CHANNEL OCR1C
-
-void backlight_init_ports()
-{
-
- // Setup PB7 as output and output low.
- DDRB |= (1<<7);
- PORTB &= ~(1<<7);
-
- // Use full 16-bit resolution.
- ICR1 = 0xFFFF;
-
- // I could write a wall of text here to explain... but TL;DW
- // Go read the ATmega32u4 datasheet.
- // And this: http://blog.saikoled.com/post/43165849837/secret-konami-cheat-code-to-high-resolution-pwm-on
-
- // Pin PB7 = OCR1C (Timer 1, Channel C)
- // Compare Output Mode = Clear on compare match, Channel C = COM1C1=1 COM1C0=0
- // (i.e. start high, go low when counter matches.)
- // WGM Mode 14 (Fast PWM) = WGM13=1 WGM12=1 WGM11=1 WGM10=0
- // Clock Select = clk/1 (no prescaling) = CS12=0 CS11=0 CS10=1
-
- TCCR1A = _BV(COM1C1) | _BV(WGM11); // = 0b00001010;
- TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS10); // = 0b00011001;
-
- backlight_init();
-}
-
-void backlight_set(uint8_t level)
-{
- if ( level == 0 )
- {
- // Turn off PWM control on PB7, revert to output low.
- TCCR1A &= ~(_BV(COM1C1));
- CHANNEL = 0x0;
- // Prevent backlight blink on lowest level
- PORTB &= ~(_BV(PORTB7));
- }
- else if ( level == BACKLIGHT_LEVELS )
- {
- // Prevent backlight blink on lowest level
- PORTB &= ~(_BV(PORTB7));
- // Turn on PWM control of PB7
- TCCR1A |= _BV(COM1C1);
- // Set the brightness
- CHANNEL = 0xFFFF;
- }
- else
- {
- // Prevent backlight blink on lowest level
- PORTB &= ~(_BV(PORTB7));
- // Turn on PWM control of PB7
- TCCR1A |= _BV(COM1C1);
- // Set the brightness
- CHANNEL = 0xFFFF >> ((BACKLIGHT_LEVELS - level) * ((BACKLIGHT_LEVELS + 1) / 2));
- }
-} \ No newline at end of file
diff --git a/keyboard/atomic/keymaps/pvc/config.h b/keyboard/atomic/keymaps/pvc/config.h
index cb0b78e447..cc92634646 100644
--- a/keyboard/atomic/keymaps/pvc/config.h
+++ b/keyboa