diff options
| -rw-r--r-- | keyboards/the_ruler/config.h | 7 | ||||
| -rw-r--r-- | keyboards/the_ruler/keymaps/default/rules.mk | 18 | ||||
| -rw-r--r-- | keyboards/the_ruler/readme.md | 9 | ||||
| -rw-r--r-- | keyboards/the_ruler/rules.mk | 47 | ||||
| -rw-r--r-- | keyboards/the_ruler/the_ruler.h | 5 |
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 | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along 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 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | ||
| 17 | SLEEP_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 @@ | |||
| 1 | The Ruler PCB | 1 | # The Ruler PCB |
| 2 | ======= | ||
| 3 | 2 | ||
| 4 | A custom keyboard PCB ruler, that can also function as a macro pad | 3 | A custom keyboard PCB ruler, that can also function as a macro pad. |
| 5 | 4 | ||
| 6 | Keyboard Maintainer: Maple Computing | 5 | Keyboard Maintainer: Maple Computing |
| 7 | Hardware Supported: PCB Ruler V1 by That-Canadian and Bishop Keyboards | 6 | Hardware Supported: PCB Ruler V1 by That-Canadian and Bishop Keyboards |
| 8 | Hardware Availability: https://www.maple-computing.com/products/pcb-ruler-v1-1 | 7 | Hardware Availability: [Bishop Keyboards](https://bishopkeyboards.com/product/pcb-ruler-gloss-black-silver/) |
| 9 | 8 | ||
| 10 | Make example for this keyboard (after setting up your build environment): | 9 | Make example for this keyboard (after setting up your build environment): |
| 11 | 10 | ||
| 12 | make the_ruler:default | 11 | make the_ruler:default |
| 13 | 12 | ||
| 14 | See [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. | 13 | 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). |
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 |
| 2 | MCU = atmega32u4 | 2 | MCU = 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. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = 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. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Interrupt driven control endpoint task(+60) | ||
| 38 | OPT_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 | # |
| 53 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 16 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration |
| 54 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 17 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 55 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 18 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 56 | CONSOLE_ENABLE = yes # Console for debug(+400) | 19 | CONSOLE_ENABLE = no # Console for debug |
| 57 | COMMAND_ENABLE = yes # Commands for debug and configuration | 20 | COMMAND_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 |
| 59 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| @@ -64,4 +27,4 @@ MIDI_ENABLE = no # MIDI controls | |||
| 64 | UNICODE_ENABLE = no # Unicode | 27 | UNICODE_ENABLE = no # Unicode |
| 65 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 28 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 66 | AUDIO_ENABLE = no # Audio output on port C6 | 29 | AUDIO_ENABLE = no # Audio output on port C6 |
| 67 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | 30 | RGBLIGHT_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 | ||
