A keyboards/rotr/config.h => keyboards/rotr/config.h +46 -0
@@ 0,0 1,46 @@
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x726F
+#define PRODUCT_ID 0x0001
+#define DEVICE_VER 0x0001
+#define MANUFACTURER ROTR
+#define PRODUCT ROTR
+#define DESCRIPTION Macro Pad and Big Knob
+
+/* key matrix size */
+#define MATRIX_ROWS 1
+#define MATRIX_COLS 3
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { E6 }
+#define MATRIX_COL_PINS { D1, D0, D4 }
+
+/*Rotary Encoder Pins*/
+#define ENCODERS_PAD_A { C6 }
+#define ENCODERS_PAD_B { D7 }
+
+/*Sets the number of pulses per increment*/
+#define ENCODER_RESOLUTION 2
+
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* number of backlight levels */
+
+#ifdef BACKLIGHT_PIN
+#define BACKLIGHT_LEVELS 3
+#endif
+
+/* Set 0 if debouncing isn't needed */
+#define DEBOUNCE 5
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
A keyboards/rotr/info.json => keyboards/rotr/info.json +12 -0
@@ 0,0 1,12 @@
+{
+ "keyboard_name": "rotr",
+ "url": "https://geekhack.org/index.php?topic=107104.0",
+ "maintainer": "qmk",
+ "width": 3,
+ "height": 1,
+ "layouts": {
+ "LAYOUT": {
+ "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}]
+ }
+ }
+}
A keyboards/rotr/keymaps/default/keymap.c => keyboards/rotr/keymaps/default/keymap.c +7 -0
@@ 0,0 1,7 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ LAYOUT(
+ KC_MPRV, KC_MPLY, KC_MNXT
+ )
+};
A keyboards/rotr/readme.md => keyboards/rotr/readme.md +20 -0
@@ 0,0 1,20 @@
+# ROTR
+
+
+
+A macro pad with a multipurpose knob.
+
+* Keyboard Maintainer: [kwlodarczyk](https://github.com/kwlodarczy)
+* Hardware: [Geekhack](https://geekhack.org/index.php?topic=107104.0)
+
+## Features:
+* Minimal design with plug and play functionality.
+* Frictionless, solid brass knob.
+* Hot swappable switches.
+* USB C connection.
+
+Make example for this keyboard (after setting up your build environment):
+
+ make rotr:default
+
+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).
A keyboards/rotr/rotr.c => keyboards/rotr/rotr.c +9 -0
@@ 0,0 1,9 @@
+#include "rotr.h"
+
+void encoder_update_kb(uint8_t index, bool clockwise) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+}
A keyboards/rotr/rotr.h => keyboards/rotr/rotr.h +9 -0
@@ 0,0 1,9 @@
+#pragma once
+
+#include "quantum.h"
+
+#define LAYOUT( \
+ K00, K01, K02 \
+) { \
+ { K00, K01, K02 } \
+}
A keyboards/rotr/rules.mk => keyboards/rotr/rules.mk +32 -0
@@ 0,0 1,32 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+# Teensy halfkay
+# Pro Micro caterina
+# Atmel DFU atmel-dfu
+# LUFA DFU lufa-dfu
+# QMK DFU qmk-dfu
+# ATmega32A bootloadHID
+# ATmega328P USBasp
+BOOTLOADER = caterina
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = yes # USB Nkey Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+MIDI_ENABLE = no # MIDI support
+BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
+AUDIO_ENABLE = no # Audio output
+FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
+ENCODER_ENABLE = yes # Enables Rotary Encoder support