summaryrefslogtreecommitdiffstats
path: root/keyboard
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard')
-rw-r--r--keyboard/atomic/Makefile6
-rw-r--r--keyboard/atomic/atomic.c92
-rw-r--r--keyboard/atomic/atomic.h5
-rw-r--r--keyboard/atomic/backlight.c63
-rw-r--r--keyboard/atomic/keymaps/pvc/config.h14
-rw-r--r--keyboard/atomic/keymaps/pvc/keymap.c710
-rw-r--r--keyboard/atomic/keymaps/pvc/makefile.mk2
-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/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/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.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/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.c193
-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.c126
-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
-rw-r--r--keyboard/retro_refit/retro_refit.c32
92 files changed, 20969 insertions, 10744 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 30e8122893..3996497161 100644
--- a/keyboard/atomic/atomic.c
+++ b/keyboard/atomic/atomic.c
@@ -2,12 +2,22 @@
__attribute__ ((weak))
void matrix_init_user(void) {
- // leave these blank
-}
+ // leave this function blank - it can be defined in a keymap file
+};
__attribute__ ((weak))
void matrix_scan_user(void) {
- // leave these blank
+ // leave this function blank - it can be defined in a keymap file
+}
+
+__attribute__ ((weak))
+void process_action_user(keyrecord_t *record) {
+ // leave this function blank - it can be defined in a keymap file
+}
+
+__attribute__ ((weak))
+void led_set_user(uint8_t usb_led) {
+ // leave this function blank - it can be defined in a keymap file
}
void matrix_init_kb(void) {
@@ -33,4 +43,78 @@ void matrix_scan_kb(void) {
// runs every cycle (a lot)
matrix_scan_user();
-} \ No newline at end of file
+}
+
+void process_action_kb(keyrecord_t *record) {
+ // put your per-action keyboard code here
+ // runs for every action, just before processing by the firmware
+
+ process_action_user(record);
+}
+
+void led_set_kb(uint8_t usb_led) {
+ // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+
+ 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 8449fa06de..cc92634646 100644
--- a/keyboard/atomic/keymaps/pvc/config.h
+++ b/keyboard/atomic/keymaps/pvc/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
-*/
+*/
#define COLS (int []){ F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7, D3, D2, D1 }
#define ROWS (int []){ D0, D5, B5, B6, B3 }
@@ -62,17 +62,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
-/*
+// Enable Keyboard Locking via magic key
+#define KEYBOARD_LOCK_ENABLE
+
+
+/*
* Force NKRO
*
- * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
+ * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
* makefile for this to work.)
*
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
* until the next keyboard reset.
*
- * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
+ * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
* fully operational during normal computer usage.
*
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
@@ -90,7 +94,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* 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
+ * 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.
*
*/
diff --git a/keyboard/atomic/keymaps/pvc/keymap.c b/keyboard/atomic/keymaps/pvc/keymap.c
index c2081f525e..e17c41e23d 100644
--- a/keyboard/atomic/keymaps/pvc/keymap.c
+++ b/keyboard/atomic/keymaps/pvc/keymap.c
@@ -1,29 +1,88 @@
#include "atomic.h"
#include "action_layer.h"
+#include "eeconfig.h"
+#include "led.h"
#ifdef AUDIO_ENABLE
-#include "audio.h"
-#include "musical_notes.h"
+ #include "audio.h"
+ #include "song_list.h"
#endif
+#define LAYER_QWERTY 0
+#define LAYER_COLEMAK 1
+#define LAYER_DVORAK 2
+#define LAYER_LOWER 3
+#define LAYER_RAISE 4
+#defi