aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/the_ruler/config.h7
-rw-r--r--keyboards/the_ruler/keymaps/default/rules.mk18
-rw-r--r--keyboards/the_ruler/readme.md9
-rw-r--r--keyboards/the_ruler/rules.mk47
-rw-r--r--keyboards/the_ruler/the_ruler.h5
5 files changed, 12 insertions, 74 deletions
diff --git a/keyboards/the_ruler/config.h b/keyboards/the_ruler/config.h
index ecae3a4f2..0ec3f69d1 100644
--- a/keyboards/the_ruler/config.h
+++ b/keyboards/the_ruler/config.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef CONFIG_H 18#pragma once
19#define CONFIG_H
20 19
21#include "config_common.h" 20#include "config_common.h"
22 21
@@ -26,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
26#define DEVICE_VER 0x0001 25#define DEVICE_VER 0x0001
27#define MANUFACTURER Maple Computing 26#define MANUFACTURER Maple Computing
28#define PRODUCT The PCB Ruler 27#define PRODUCT The PCB Ruler
29#define DESCRIPTION A custom keyboard PCB ruler, can also function as a macro pad 28#define DESCRIPTION "A custom keyboard PCB ruler, can also function as a macro pad"
30 29
31/* key matrix size */ 30/* key matrix size */
32#define MATRIX_ROWS 1 31#define MATRIX_ROWS 1
@@ -155,5 +154,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
155#define RGBLIGHT_HUE_STEP 10 154#define RGBLIGHT_HUE_STEP 10
156#define RGBLIGHT_SAT_STEP 17 155#define RGBLIGHT_SAT_STEP 17
157#define RGBLIGHT_VAL_STEP 17 156#define RGBLIGHT_VAL_STEP 17
158
159#endif
diff --git a/keyboards/the_ruler/keymaps/default/rules.mk b/keyboards/the_ruler/keymaps/default/rules.mk
index 2791cc105..e69de29bb 100644
--- a/keyboards/the_ruler/keymaps/default/rules.mk
+++ b/keyboards/the_ruler/keymaps/default/rules.mk
@@ -1,18 +0,0 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
6MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
7EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
8CONSOLE_ENABLE = no # Console for debug(+400)
9COMMAND_ENABLE = yes # Commands for debug and configuration
10NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = no # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
17SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
18
diff --git a/keyboards/the_ruler/readme.md b/keyboards/the_ruler/readme.md
index 63a6ffeee..13ea61c9a 100644
--- a/keyboards/the_ruler/readme.md
+++ b/keyboards/the_ruler/readme.md
@@ -1,14 +1,13 @@
1The Ruler PCB 1# The Ruler PCB
2=======
3 2
4A custom keyboard PCB ruler, that can also function as a macro pad 3A custom keyboard PCB ruler, that can also function as a macro pad.
5 4
6Keyboard Maintainer: Maple Computing 5Keyboard Maintainer: Maple Computing
7Hardware Supported: PCB Ruler V1 by That-Canadian and Bishop Keyboards 6Hardware Supported: PCB Ruler V1 by That-Canadian and Bishop Keyboards
8Hardware Availability: https://www.maple-computing.com/products/pcb-ruler-v1-1 7Hardware Availability: [Bishop Keyboards](https://bishopkeyboards.com/product/pcb-ruler-gloss-black-silver/)
9 8
10Make example for this keyboard (after setting up your build environment): 9Make example for this keyboard (after setting up your build environment):
11 10
12 make the_ruler:default 11 make the_ruler:default
13 12
14See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. 13See 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/the_ruler/rules.mk b/keyboards/the_ruler/rules.mk
index 7eca12ad4..33611c44b 100644
--- a/keyboards/the_ruler/rules.mk
+++ b/keyboards/the_ruler/rules.mk
@@ -1,43 +1,6 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes* 4# Boot Section Size in *bytes*
42# Teensy halfKay 512 5# Teensy halfKay 512
43# Teensy++ halfKay 1024 6# Teensy++ halfKay 1024
@@ -50,10 +13,10 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
50# Build Options 13# Build Options
51# change yes to no to disable 14# change yes to no to disable
52# 15#
53BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 16BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
54MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 17MOUSEKEY_ENABLE = yes # Mouse keys
55EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 18EXTRAKEY_ENABLE = yes # Audio control and System control
56CONSOLE_ENABLE = yes # Console for debug(+400) 19CONSOLE_ENABLE = no # Console for debug
57COMMAND_ENABLE = yes # Commands for debug and configuration 20COMMAND_ENABLE = yes # Commands for debug and configuration
58# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
59SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
@@ -64,4 +27,4 @@ MIDI_ENABLE = no # MIDI controls
64UNICODE_ENABLE = no # Unicode 27UNICODE_ENABLE = no # Unicode
65BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 28BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
66AUDIO_ENABLE = no # Audio output on port C6 29AUDIO_ENABLE = no # Audio output on port C6
67RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. 30RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
diff --git a/keyboards/the_ruler/the_ruler.h b/keyboards/the_ruler/the_ruler.h
index 45a327b0d..171d21a07 100644
--- a/keyboards/the_ruler/the_ruler.h
+++ b/keyboards/the_ruler/the_ruler.h
@@ -1,5 +1,4 @@
1#ifndef THERULER_H 1#pragma once
2#define THERULER_H
3 2
4#include "quantum.h" 3#include "quantum.h"
5 4
@@ -7,5 +6,3 @@
7 K00, K01, K02, K03, K04, K05 ) { \ 6 K00, K01, K02, K03, K04, K05 ) { \
8 { K00, K01, K02, K03, K04, K05 } \ 7 { K00, K01, K02, K03, K04, K05 } \
9} 8}
10
11#endif