aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/trackball/rev1_004
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ploopyco/trackball/rev1_004')
-rw-r--r--keyboards/ploopyco/trackball/rev1_004/config.h33
-rw-r--r--keyboards/ploopyco/trackball/rev1_004/keyboard.json9
-rw-r--r--keyboards/ploopyco/trackball/rev1_004/readme.md30
-rw-r--r--keyboards/ploopyco/trackball/rev1_004/rules.mk2
4 files changed, 74 insertions, 0 deletions
diff --git a/keyboards/ploopyco/trackball/rev1_004/config.h b/keyboards/ploopyco/trackball/rev1_004/config.h
new file mode 100644
index 0000000000..25bcf86391
--- /dev/null
+++ b/keyboards/ploopyco/trackball/rev1_004/config.h
@@ -0,0 +1,33 @@
+/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <[email protected]>
+ * Copyright 2019 Sunjun Kim
+ * Copyright 2020 Ploopy Corporation
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+// These pins are not broken out, and cannot be used normally.
+// They are set as output and pulled high, by default
+#define UNUSABLE_PINS \
+ { D1, D3, B4, B6, B7, D6, C7, F6, F5, F3, F7 }
+
+// If board has a debug LED, you can enable it by defining this
+#define DEBUG_LED_PIN F7
+
+/* PMW33XX Settings */
+#define PMW33XX_CS_PIN B0
+
+#define ENCODER_A_PINS { F0 }
+#define ENCODER_B_PINS { F4 }
diff --git a/keyboards/ploopyco/trackball/rev1_004/keyboard.json b/keyboards/ploopyco/trackball/rev1_004/keyboard.json
new file mode 100644
index 0000000000..8e372e7c2b
--- /dev/null
+++ b/keyboards/ploopyco/trackball/rev1_004/keyboard.json
@@ -0,0 +1,9 @@
+{
+ "processor": "atmega32u4",
+ "bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "D2", "E6", "B5", "D7"]
+ ]
+ }
+}
diff --git a/keyboards/ploopyco/trackball/rev1_004/readme.md b/keyboards/ploopyco/trackball/rev1_004/readme.md
new file mode 100644
index 0000000000..a824c4690e
--- /dev/null
+++ b/keyboards/ploopyco/trackball/rev1_004/readme.md
@@ -0,0 +1,30 @@
+See the [main readme](../readme.md) for more details.
+
+This is just the rev 1.001-1.004 trackball
+
+# Programming QMK-DFU onto the PloopyCo Trackball (Advanced)
+
+If you would rather have DFU on this board, you can use the QMK-DFU bootloader on the device. To do so, you want to run:
+
+ make ploopyco/trackball:default:production
+
+Once you have that, you'll need to [ISP Flash](https://docs.qmk.fm/#/isp_flashing_guide) the chip with the new "production" hex file created (or the production hex), and set the fuses:
+
+
+| Fuse | Setting |
+|----------|------------------|
+| Low | `0x52` |
+| High | `0x99` |
+| Extended | `0xCB` |
+
+Original (Caterina) settings:
+
+| Fuse | Setting |
+|----------|------------------|
+| Low | `0xFF` |
+| High | `0xD8` |
+| Extended | `0xFE` |
+
+If you're using QMK DFU, you'll also need to add `BOOTLOADER=qmk-dfu` to your keymap's rules.mk file, to ensure that the reboot/reset works correctly. Otherwise, it will jump right back into the firmware, like nothing happened.
+
+Additionally, once you've flashed the qmk-dfu bootloader onto your device, you will no longer be able to use the Arduino IDE to flash the board. You'll need to use the command line or QMK Toolbox to flash it.
diff --git a/keyboards/ploopyco/trackball/rev1_004/rules.mk b/keyboards/ploopyco/trackball/rev1_004/rules.mk
new file mode 100644
index 0000000000..3437a35bdf
--- /dev/null
+++ b/keyboards/ploopyco/trackball/rev1_004/rules.mk
@@ -0,0 +1,2 @@
+# Processor frequency
+F_CPU = 8000000