summaryrefslogtreecommitdiff
path: root/keyboards/deltasplit75/v2
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-02-05 02:59:20 +0000
committerGitHub <noreply@github.com>2020-02-04 18:59:20 -0800
commita557a5b2c5e62c20e037fbca56dc902a20cd6ff8 (patch)
treef1dc09a93883bb459c7523209495975b050e6775 /keyboards/deltasplit75/v2
parenta6b0a74d95535be1d3c0cd1b6c836ed2dea1b150 (diff)
downloadqmk_firmware-a557a5b2c5e62c20e037fbca56dc902a20cd6ff8.tar.gz
qmk_firmware-a557a5b2c5e62c20e037fbca56dc902a20cd6ff8.zip
[Keyboard] Refactor deltasplit75 to use split_common (#8083)
* Refactor deltasplit75 to use split_common * Refactor deltasplit75 to use split_common - small tidy up
Diffstat (limited to 'keyboards/deltasplit75/v2')
-rw-r--r--keyboards/deltasplit75/v2/config.h10
-rw-r--r--keyboards/deltasplit75/v2/v2.c15
-rw-r--r--keyboards/deltasplit75/v2/v2.h5
3 files changed, 8 insertions, 22 deletions
diff --git a/keyboards/deltasplit75/v2/config.h b/keyboards/deltasplit75/v2/config.h
index 6a2e48f4f4..844fcf43bd 100644
--- a/keyboards/deltasplit75/v2/config.h
+++ b/keyboards/deltasplit75/v2/config.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef CONFIG_V2_H
-#define CONFIG_V2_H
+#pragma once
#include "config_common.h"
@@ -40,6 +39,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
+/*
+ * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
+ */
+#define SOFT_SERIAL_PIN D0
+
/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST
@@ -76,5 +80,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION
-
-#endif
diff --git a/keyboards/deltasplit75/v2/v2.c b/keyboards/deltasplit75/v2/v2.c
index a7ee1fa8a5..caf7c6f0f2 100644
--- a/keyboards/deltasplit75/v2/v2.c
+++ b/keyboards/deltasplit75/v2/v2.c
@@ -1,14 +1 @@
-#include "deltasplit75.h"
-
-void matrix_init_kb(void) {
- // // green led on
- // DDRD |= (1<<5);
- // PORTD &= ~(1<<5);
-
- // // orange led on
- // DDRB |= (1<<0);
- // PORTB &= ~(1<<0);
-
- matrix_init_user();
-};
-
+#include "v2.h"
diff --git a/keyboards/deltasplit75/v2/v2.h b/keyboards/deltasplit75/v2/v2.h
index 82f54c2b0d..bab6a47cd9 100644
--- a/keyboards/deltasplit75/v2/v2.h
+++ b/keyboards/deltasplit75/v2/v2.h
@@ -1,5 +1,4 @@
-#ifndef V2_H
-#define V2_H
+#pragma once
#include "deltasplit75.h"
@@ -56,5 +55,3 @@
{ K120, K121, K122, K123, KC_NO, KC_NO, K126, K127}, \
{ KC_NO, KC_NO, K132, K133, K134, K135, K136, K137} \
}
-
-#endif