aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard <rich@brickbots.com>2022-01-07 19:22:35 -0800
committerGitHub <noreply@github.com>2022-01-07 19:22:35 -0800
commita2ed670eee98cab826e0b959576716cd7e13a946 (patch)
tree15508d5a668d620d77e1dc7d9d7c9417adf2559c
parent4ace960b98bf50468cf560a50ce591d6de00639d (diff)
downloadqmk_firmware-a2ed670eee98cab826e0b959576716cd7e13a946.tar.gz
qmk_firmware-a2ed670eee98cab826e0b959576716cd7e13a946.zip
Add a-ball handwired trackball based on ADSN9800 (#9015)
* Initial commit of kball * Pretty much working * Rename to aball * Cleanup * Fix typo and make instructions * Refactor to use qmk spi * Suggestions from ZVECR * Update keyboards/handwired/aball/adns9800_srom_A6.h * Update keyboards/handwired/aball/adns.c * Update keyboards/handwired/aball/adns.c * Update keyboards/handwired/aball/adns.c * Added copyright and source attribution * Update keyboards/handwired/aball/rules.mk Include as quantum lib to help avoid timing issues with LTO * Only send report on change, adj sensitivity, fix src include * Fix issue causing constant reports and bad clamping * Streamline conversion to int, add required wait before burst read * Changes to track develop * Update rules with new feature descriptors, add info.json * Add stub layout * Rework / cleanup key matrix. Add missing CS pin define for new ADNS driver * Add stub keymap to enable compile
-rw-r--r--keyboards/handwired/aball/aball.c18
-rw-r--r--keyboards/handwired/aball/aball.h29
-rw-r--r--keyboards/handwired/aball/config.h35
-rw-r--r--keyboards/handwired/aball/info.json12
-rw-r--r--keyboards/handwired/aball/keymaps/default/keymap.c18
-rw-r--r--keyboards/handwired/aball/readme.md14
-rw-r--r--keyboards/handwired/aball/rules.mk22
7 files changed, 148 insertions, 0 deletions
diff --git a/keyboards/handwired/aball/aball.c b/keyboards/handwired/aball/aball.c
new file mode 100644
index 000000000..0b3d2f165
--- /dev/null
+++ b/keyboards/handwired/aball/aball.c
@@ -0,0 +1,18 @@
1/* Copyright 2020 Richard Sutherland
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
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/>.
15 */
16
17#include "aball.h"
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { };
diff --git a/keyboards/handwired/aball/aball.h b/keyboards/handwired/aball/aball.h
new file mode 100644
index 000000000..8daf6bf68
--- /dev/null
+++ b/keyboards/handwired/aball/aball.h
@@ -0,0 +1,29 @@
1/* Copyright 2020 Richard Sutherland
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
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/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT(k00) {{ KC_NO }}
diff --git a/keyboards/handwired/aball/config.h b/keyboards/handwired/aball/config.h
new file mode 100644
index 000000000..12f13fb4a
--- /dev/null
+++ b/keyboards/handwired/aball/config.h
@@ -0,0 +1,35 @@
1/*
2Copyright 2020 Richard Sutherland
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0xC2F0
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Richard Sutherland
27#define PRODUCT ABall
28
29/* key matrix size */
30#define MATRIX_ROWS 1
31#define MATRIX_COLS 1
32
33#define DIRECT_PINS {{NO_PIN}}
34
35#define ADNS9800_CS_PIN F7
diff --git a/keyboards/handwired/aball/info.json b/keyboards/handwired/aball/info.json
new file mode 100644
index 000000000..c8afff6a2
--- /dev/null
+++ b/keyboards/handwired/aball/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "aball",
3 "url": "https://github.com/brickbots/aball/",
4 "maintainer": "@brickbots",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"x":0, "y":0}
9 ]
10 }
11 }
12}
diff --git a/keyboards/handwired/aball/keymaps/default/keymap.c b/keyboards/handwired/aball/keymaps/default/keymap.c
new file mode 100644
index 000000000..00826a026
--- /dev/null
+++ b/keyboards/handwired/aball/keymaps/default/keymap.c
@@ -0,0 +1,18 @@
1/* Copyright 2020 Richard Sutherland
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
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/>.
15 */
16#include QMK_KEYBOARD_H
17
18
diff --git a/keyboards/handwired/aball/readme.md b/keyboards/handwired/aball/readme.md
new file mode 100644
index 000000000..96a62d838
--- /dev/null
+++ b/keyboards/handwired/aball/readme.md
@@ -0,0 +1,14 @@
1# ABall
2
3Your keyboard has plenty of buttons, why do you need more on your pointing device? ABall is a buttonless trackball designed to
4fit nicely next to a kyria, or other keyboard which serves as the mouse buttons. For my use I have left, middle and right mouse
5buttons on a layer along with keys for scroll up and down which I operate with my left hand while my right hand uses the ball for pointing.
6
7* Keyboard Maintainer: [Richard Sutherland](https://github.com/brickbots)
8* Special thanks to the Oddball for doing the heavy lifing with ADNS suport: [atulloh.github.io/oddball](https://atulloh.github.io/oddball)
9
10Make example for this keyboard (after setting up your build environment):
11
12 make handwired/aball:default
13
14See 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).
diff --git a/keyboards/handwired/aball/rules.mk b/keyboards/handwired/aball/rules.mk
new file mode 100644
index 000000000..906395773
--- /dev/null
+++ b/keyboards/handwired/aball/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = no # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19
20# Add trackball support
21POINTING_DEVICE_ENABLE = yes
22POINTING_DEVICE_DRIVER = adns9800