diff options
Diffstat (limited to 'keyboards/launchpad/rev1')
| -rw-r--r-- | keyboards/launchpad/rev1/config.h | 32 | ||||
| -rw-r--r-- | keyboards/launchpad/rev1/rev1.c | 14 | ||||
| -rw-r--r-- | keyboards/launchpad/rev1/rev1.h | 24 | ||||
| -rw-r--r-- | keyboards/launchpad/rev1/rules.mk | 3 |
4 files changed, 73 insertions, 0 deletions
diff --git a/keyboards/launchpad/rev1/config.h b/keyboards/launchpad/rev1/config.h new file mode 100644 index 000000000..67a415422 --- /dev/null +++ b/keyboards/launchpad/rev1/config.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef REV1_CONFIG_H | ||
| 19 | #define REV1_CONFIG_H | ||
| 20 | |||
| 21 | #include "../config.h" | ||
| 22 | |||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | |||
| 25 | /* Let's Macro V2 pin-out */ | ||
| 26 | #define MATRIX_ROW_PINS { C6, B1, B3, D7 } | ||
| 27 | #define MATRIX_COL_PINS { D2, F7 } | ||
| 28 | #define UNUSED_PINS | ||
| 29 | |||
| 30 | #define DIODE_DIRECTION COL2ROW | ||
| 31 | |||
| 32 | #endif | ||
diff --git a/keyboards/launchpad/rev1/rev1.c b/keyboards/launchpad/rev1/rev1.c new file mode 100644 index 000000000..a7aec80e1 --- /dev/null +++ b/keyboards/launchpad/rev1/rev1.c | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #include "launchpad.h" | ||
| 2 | |||
| 3 | void matrix_init_kb(void) { | ||
| 4 | |||
| 5 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
| 6 | MCUCR |= (1<<JTD); | ||
| 7 | MCUCR |= (1<<JTD); | ||
| 8 | |||
| 9 | // Undo init of RX LED, we use that port currently | ||
| 10 | //DDRB &= ~(1<<0); | ||
| 11 | |||
| 12 | matrix_init_user(); | ||
| 13 | |||
| 14 | }; \ No newline at end of file | ||
diff --git a/keyboards/launchpad/rev1/rev1.h b/keyboards/launchpad/rev1/rev1.h new file mode 100644 index 000000000..fd692cad1 --- /dev/null +++ b/keyboards/launchpad/rev1/rev1.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #ifndef REV1_H | ||
| 2 | #define REV1_H | ||
| 3 | |||
| 4 | #include "../launchpad.h" | ||
| 5 | |||
| 6 | //void promicro_bootloader_jmp(bool program); | ||
| 7 | #include "quantum.h" | ||
| 8 | |||
| 9 | //void promicro_bootloader_jmp(bool program); | ||
| 10 | |||
| 11 | #define LAYOUT( \ | ||
| 12 | K00, K01, \ | ||
| 13 | K10, K11, \ | ||
| 14 | K20, K21, \ | ||
| 15 | K30, K31 \ | ||
| 16 | ) \ | ||
| 17 | { \ | ||
| 18 | { K00, K01 }, \ | ||
| 19 | { K10, K11 }, \ | ||
| 20 | { K20, K21 }, \ | ||
| 21 | { K30, K31 } \ | ||
| 22 | } | ||
| 23 | |||
| 24 | #endif \ No newline at end of file | ||
diff --git a/keyboards/launchpad/rev1/rules.mk b/keyboards/launchpad/rev1/rules.mk new file mode 100644 index 000000000..bafce654a --- /dev/null +++ b/keyboards/launchpad/rev1/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | BACKLIGHT_ENABLE = no | ||
| 2 | RGBLIGHT_ENABLE = no | ||
| 3 | AUDIO_ENABLE = no \ No newline at end of file | ||
