Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new keyboard Handwired/cheapwire #24884

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
20 changes: 20 additions & 0 deletions keyboards/handwired/cheapwire/config.h
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file can/should be removed. Most of these settings are things that should be set per user (eg, at keymap level), and the rest are mostly just comments.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2023 Eduardo Mendez (@cocolizo945)

Check failure on line 1 in keyboards/handwired/cheapwire/config.h

View workflow job for this annotation

GitHub Actions / lint

Requires Formatting
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
#define TAPPING_TERM 135
#define PERMISSIVE_HOLD
#define TAPPING_TERM_PER_KEY
81 changes: 81 additions & 0 deletions keyboards/handwired/cheapwire/info.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be renamed to keyboard.json

Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"manufacturer": "Eduardo Mendez",
"keyboard_name": "handwired/cheapwire",
"maintainer": "cocolizo945",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP16", "GP17", "GP18", "GP19", "GP20", "GP21"],
"rows": ["GP0", "GP1", "GP2", "GP3", "GP11", "GP12", "GP13", "GP14"]
},
"processor": "RP2040",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x2416",
"vid": "0x4351"
},
"layouts": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"layouts": {
"community_layouts": [ "split_3x6_3" ],
"layouts": {

"LAYOUT_split_3x6_3": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0.75},
{"matrix": [0, 1], "x": 1, "y": 0.5},
{"matrix": [0, 2], "x": 2, "y": 0.25},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [0, 4], "x": 4, "y": 0.25},
{"matrix": [0, 5], "x": 5, "y": 0.5},

{"matrix": [1, 11], "x": 0, "y": 1.75},
{"matrix": [1, 10], "x": 1, "y": 1.5},
{"matrix": [1, 9], "x": 2, "y": 1.25},
{"matrix": [1, 8], "x": 3, "y": 1},
{"matrix": [1, 7], "x": 4, "y": 1.25},
{"matrix": [1, 6], "x": 5, "y": 1.5},

{"matrix": [2, 0], "x": 0, "y": 2.75},
{"matrix": [2, 1], "x": 1, "y": 2.5},
{"matrix": [2, 2], "x": 2, "y": 2.25},
{"matrix": [2, 3], "x": 3, "y": 2},
{"matrix": [2, 4], "x": 4, "y": 2.25},
{"matrix": [2, 5], "x": 5, "y": 2.5},

{"matrix": [3, 11], "x": 0, "y": 1.75},
{"matrix": [3, 10], "x": 1, "y": 1.5},
{"matrix": [3, 9], "x": 2, "y": 1.25},
{"matrix": [3, 8], "x": 3, "y": 1},
{"matrix": [3, 7], "x": 4, "y": 1.25},
{"matrix": [3, 6], "x": 5, "y": 1.5},

{"matrix": [4, 0], "x": 0, "y": 0.75},
{"matrix": [4, 1], "x": 1, "y": 0.5},
{"matrix": [4, 2], "x": 2, "y": 0.25},
{"matrix": [4, 3], "x": 3, "y": 0},
{"matrix": [4, 4], "x": 4, "y": 0.25},
{"matrix": [4, 5], "x": 5, "y": 0.5},

{"matrix": [5, 11], "x": 0, "y": 1.75},
{"matrix": [5, 10], "x": 1, "y": 1.5},
{"matrix": [5, 9], "x": 2, "y": 1.25},
{"matrix": [5, 8], "x": 3, "y": 1},
{"matrix": [5, 7], "x": 4, "y": 1.25},
{"matrix": [5, 6], "x": 5, "y": 1.5},

{"matrix": [6, 3], "x": 3, "y": 2},
{"matrix": [6, 4], "x": 4, "y": 2.25},
{"matrix": [6, 5], "x": 5, "y": 2.5},

{"matrix": [7, 11], "x": 3.5, "y": 3.5},
{"matrix": [7, 10], "x": 4.5, "y": 3.75},
{"matrix": [7, 9], "x": 5.5, "y": 4}
]
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

32 changes: 32 additions & 0 deletions keyboards/handwired/cheapwire/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT_split_3x6_3(
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
LSFT_T(KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
LCTL_T(KC_NUBS), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_NUHS,
KC_LGUI, KC_LALT, KC_SPC, LT(1, KC_TAB), LT(2, KC_ENT), KC_ESC
),
[1] = LAYOUT_split_3x6_3(
KC_TRNS, KC_TRNS, KC_PMNS, KC_PPLS, KC_PGUP, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_MRWD, KC_MFFD, KC_DEL,
KC_TRNS, KC_PLUS, KC_ASTR, KC_LPRN, KC_UNDS, KC_PIPE, KC_ESC, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_MPRV,
KC_TRNS, KC_LBRC, KC_RBRC, KC_INS, KC_LSFT, KC_RPRN, KC_HOME, KC_END, KC_VOLD, KC_MUTE, KC_VOLU, KC_MNXT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),
[2] = LAYOUT_split_3x6_3(
QK_BOOT, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_1, KC_2, KC_3, KC_PPLS, KC_CAPS, KC_BSPC,
EE_CLR, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, LCA(KC_DEL), KC_4, KC_5, KC_6, KC_PMNS, LCA(KC_LBRC), KC_TRNS,
KC_BSLS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_7, KC_8, KC_9, KC_0, KC_PAST, KC_PENT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),
[3] = LAYOUT_split_3x6_3(
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSPC,
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
KC_NO, KC_NO, KC_NO, KC_NO, QK_BOOT, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
};
21 changes: 21 additions & 0 deletions keyboards/handwired/cheapwire/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# handwired/cheapwire

![handwired/cheapwire](https://github.com/cocolizo945/qmk_firmware/assets/81886929/4061c9e0-0de0-4f59-882a-e559f994c122)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image should be rehosted on dedicated image hosting site, such as imgur.



*A short description of the keyboard/project*

* Keyboard Maintainer: [Eduardo Mendez](https://github.com/cocolizo945)
* Hardware Supported: *The PCBs, controllers supported*
* Hardware Availability: *Links to where you can find this hardware*

Make example for this keyboard (after setting up your build environment):

make handwired/cheapwire:default

Flashing example for this keyboard:

make handwired/cheapwire:default:flash


See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
1 change: 1 addition & 0 deletions keyboards/handwired/cheapwire/rules.mk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be removed.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank
Loading