diff options
Diffstat (limited to 'keyboards/cu24')
| -rw-r--r-- | keyboards/cu24/config.h | 5 | ||||
| -rw-r--r-- | keyboards/cu24/cu24.h | 36 |
2 files changed, 17 insertions, 24 deletions
diff --git a/keyboards/cu24/config.h b/keyboards/cu24/config.h index 7d1bae604..524d3f370 100644 --- a/keyboards/cu24/config.h +++ b/keyboards/cu24/config.h | |||
| @@ -14,8 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #ifndef CONFIG_H | 17 | #pragma once |
| 18 | #define CONFIG_H | ||
| 19 | 18 | ||
| 20 | #include "config_common.h" | 19 | #include "config_common.h" |
| 21 | 20 | ||
| @@ -159,5 +158,3 @@ | |||
| 159 | //#define NO_ACTION_ONESHOT | 158 | //#define NO_ACTION_ONESHOT |
| 160 | //#define NO_ACTION_MACRO | 159 | //#define NO_ACTION_MACRO |
| 161 | //#define NO_ACTION_FUNCTION | 160 | //#define NO_ACTION_FUNCTION |
| 162 | |||
| 163 | #endif | ||
diff --git a/keyboards/cu24/cu24.h b/keyboards/cu24/cu24.h index d329182d2..8e3daa475 100644 --- a/keyboards/cu24/cu24.h +++ b/keyboards/cu24/cu24.h | |||
| @@ -13,11 +13,13 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #ifndef CU24_H | 16 | |
| 17 | #define CU24_H | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #include "quantum.h" | 19 | #include "quantum.h" |
| 20 | 20 | ||
| 21 | #define XXX KC_NO | ||
| 22 | |||
| 21 | // This a shortcut to help you visually see your layout. | 23 | // This a shortcut to help you visually see your layout. |
| 22 | // The following is an example using the Planck MIT layout | 24 | // The following is an example using the Planck MIT layout |
| 23 | // The first section contains all of the arguments | 25 | // The first section contains all of the arguments |
| @@ -28,34 +30,28 @@ | |||
| 28 | k20, k21, k22, k23, \ | 30 | k20, k21, k22, k23, \ |
| 29 | k30, k31, k32, k33, \ | 31 | k30, k31, k32, k33, \ |
| 30 | k40, k41, k42, k43, \ | 32 | k40, k41, k42, k43, \ |
| 31 | k50, k51, k52, k53 \ | 33 | k50, k51, k52, k53 \ |
| 32 | ) \ | 34 | ) { \ |
| 33 | { \ | ||
| 34 | { k00, k01, k02, k03 }, \ | 35 | { k00, k01, k02, k03 }, \ |
| 35 | { k10, k11, k12, k13 }, \ | 36 | { k10, k11, k12, k13 }, \ |
| 36 | { k20, k21, k22, k23 }, \ | 37 | { k20, k21, k22, k23 }, \ |
| 37 | { k30, k31, k32, k33 }, \ | 38 | { k30, k31, k32, k33 }, \ |
| 38 | { k40, k41, k42, k43 }, \ | 39 | { k40, k41, k42, k43 }, \ |
| 39 | { k50, k51, k52, k53 } \ | 40 | { k50, k51, k52, k53 } \ |
| 40 | } | 41 | } |
| 41 | 42 | ||
| 42 | #define LAYOUT_numpad( \ | 43 | #define LAYOUT_numpad( \ |
| 43 | k00, k01, k02, k03, \ | 44 | k00, k01, k02, k03, \ |
| 44 | k10, k11, k12, k13, \ | 45 | k10, k11, k12, k13, \ |
| 45 | k20, k21, k22, k23, \ | 46 | k20, k21, k22, k23, \ |
| 46 | k30, k31, k32, \ | 47 | k30, k31, k32, \ |
| 47 | k40, k41, k42, k43, \ | 48 | k40, k41, k42, k43, \ |
| 48 | k51, k52 \ | 49 | k51, k52 \ |
| 49 | ) \ | 50 | ) { \ |
| 50 | { \ | 51 | { k00, k01, k02, k03 }, \ |
| 51 | { k00, k01, k02, k03 }, \ | 52 | { k10, k11, k12, k13 }, \ |
| 52 | { k10, k11, k12, k13 }, \ | 53 | { k20, k21, k22, k23 }, \ |
| 53 | { k20, k21, k22, k23 }, \ | 54 | { k30, k31, k32, XXX }, \ |
| 54 | { k30, k31, k32, KC_NO }, \ | 55 | { k40, k41, k42, k43 }, \ |
| 55 | { k40, k41, k42, k43 }, \ | 56 | { XXX, k51, k52, XXX } \ |
| 56 | { KC_NO, k51, k52, KC_NO } \ | ||
| 57 | } | 57 | } |
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | #endif | ||
