Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix config.h etc refine #13

Merged
merged 24 commits into from
Jul 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f28f569
Fixed issues with MxSS RGB functionality (#3341)
MxBlu Jul 8, 2018
0b9b2a6
Add edvorakjp keymap for the Helix (rev2) keyboard (#3340)
epaew Jul 8, 2018
67adb30
Re-add RGBW code, so RGB Underglow will compile
drashna Jul 9, 2018
4081288
Revert to RGB Underglow being enabled, rather than rgb matrix
drashna Jul 9, 2018
52857e5
Fixed MxSS ISO layouts in QMK configuator (hopefully) (#3352)
MxBlu Jul 9, 2018
c6042a2
Turn backlight support on by default for tkc1800 (#3353)
TerryMathews Jul 9, 2018
4a6d668
Merge pull request #3354 from drashna/shiny_dox_fix
ezuk Jul 9, 2018
dab0b35
Add h87a keyboard (#3329)
Jul 9, 2018
56b5e9f
Add Comet46 keyboard (#3342)
satt99 Jul 9, 2018
5ef5025
AL1 Unable to Compile on Configurator (#3339)
mechmerlin Jul 9, 2018
65f1b08
Initial Commit of Noxary 268 firmware by Rozakiin (#3351)
yanfali Jul 9, 2018
5b7ac47
MxSS refactor and Configurator bugfix (#3355)
noroadsleft Jul 9, 2018
0fcaa3b
Al1 Configurator compile fix redux (#3357)
mechmerlin Jul 9, 2018
ddaa4c2
updating broken iris documentation links to match updated website (#3…
Jul 9, 2018
6ef3359
Configurator Noxary 268: match dir name
yanfali Jul 9, 2018
11f8414
Fix header references for noxary 268 keyboard (#3359)
yanfali Jul 9, 2018
8ee97f7
Correct conditional in mtdjr userspace (#3361)
mtdjr Jul 9, 2018
aaa311d
Add up/down keys to the code layer for ease of intellisense usage. (#…
333fred Jul 10, 2018
a345458
MxSS Configurator bugfix: removed an extra key that didn't belong (#3…
noroadsleft Jul 10, 2018
5477bf3
add hhkb bluetooth functionality (rn42) (#2693)
Enochen Jul 10, 2018
4891315
Replace gitter links with Discord. (#3368)
333fred Jul 11, 2018
e9730cb
temporary change, compiling C, C++ and ASM without -g
mtei Jul 10, 2018
1e54c0f
helix config.h refine
mtei Jul 10, 2018
92643bd
Revert "temporary change, compiling C, C++ and ASM without -g"
mtei Jul 11, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Third-party contributions help us grow and improve QMK. We want to make the pull

## I Don't Want to Read This Whole Thing! I Just Have a Question!

If you'd like to ask questions about QMK you can do so on the [OLKB Subreddit](https://reddit.com/r/olkb) or on [Gitter](https://gitter.im/qmk/qmk_firmware).
If you'd like to ask questions about QMK you can do so on the [OLKB Subreddit](https://reddit.com/r/olkb) or on [Discord](https://discord.gg/Uq7gcHh).

Please keep these things in mind:

Expand All @@ -29,7 +29,7 @@ QMK is largely written in C, with specific features and parts written in C++. It

# Where Can I Go for Help?

If you need help you can [open an issue](https://github.com/qmk/qmk_firmware/issues) or [chat on gitter](http://gitter.im/QMK/qmk_firmware).
If you need help you can [open an issue](https://github.com/qmk/qmk_firmware/issues) or [chat on Discord](https://discord.gg/Uq7gcHh).

# How Do I Make a Contribution?

Expand Down Expand Up @@ -124,7 +124,7 @@ We also ask that you follow these guidelines:

Before you put a lot of work into building your new feature you should make sure you are implementing it in the best way. You can get a basic understanding of QMK by reading [Understanding QMK](understanding_qmk.md), which will take you on a tour of the QMK program flow. From here you should talk to us to get a sense of the best way to implement your idea. There are two main ways to do this:

* [Chat on Gitter](https://gitter.im/qmk/qmk_firmware)
* [Chat on Discord](https://discord.gg/Uq7gcHh)
* [Open an Issue](https://github.com/qmk/qmk_firmware/issues/new)

Feature and Bug Fix PR's affect all keyboards. We are also in the process of restructuring QMK. For this reason it is especially important for significant changes to be discussed before implementation has happened. If you open a PR without talking to us first please be prepared to do some significant rework if your choices do not mesh well with our planned direction.
Expand Down
2 changes: 1 addition & 1 deletion docs/custom_quantum_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Whenever possible you should customize your keyboard by using `process_record_*(

### Example `matrix_scan_*` Implementation

This example has been deliberately omitted. You should understand enough about QMK internals to write this without an example before hooking into such a performance sensitive area. If you need help please [open an issue](https://github.com/qmk/qmk_firmware/issues/new) or [chat with us on gitter](https://gitter.im/qmk/qmk_firmware).
This example has been deliberately omitted. You should understand enough about QMK internals to write this without an example before hooking into such a performance sensitive area. If you need help please [open an issue](https://github.com/qmk/qmk_firmware/issues/new) or [chat with us on Discord](https://discord.gg/Uq7gcHh).

### `matrix_scan_*` Function Documentation

Expand Down
8 changes: 1 addition & 7 deletions docs/getting_started_getting_help.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ There are a lot of resources for getting help with QMK.

## Realtime Chat

You can find QMK developers and users on our main [gitter chat room](https://gitter.im/qmk/qmk_firmware). We also have other rooms for more specific discussion:

* [Main Firmware Chat](https://gitter.im/qmk/qmk_firmware)
* [QMK Toolbox](https://gitter.im/qmk/qmk_toolbox)
* [Hardware Design Discussion](https://gitter.im/qmk/qmk_hardware)
* [Web Configurator](https://gitter.im/qmk/qmk_configurator)
* [Compiler API](https://gitter.im/qmk/qmk_compiler_api)
You can find QMK developers and users on our main [Discord server](https://discord.gg/Uq7gcHh). There are specific channels in the server for chatting about the firmware, Toolbox, hardware, and configurator.

## OLKB Subreddit

Expand Down
10 changes: 1 addition & 9 deletions keyboards/al1/al1.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@
*/
#include "al1.h"

void matrix_init_kb(void) {
matrix_init_user();
}

void matrix_scan_kb(void) {
matrix_scan_user();
}

bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return process_record_user(keycode, record);
}
Expand All @@ -45,4 +37,4 @@ void led_set_kb(uint8_t usb_led) {
else
PORTD |= (1<<1);
led_set_user(usb_led);
}
}
4 changes: 2 additions & 2 deletions keyboards/al1/keymaps/splitbs/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "al1.h"
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_split_bs(\
Expand Down Expand Up @@ -49,4 +49,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {

void led_set_user(uint8_t usb_led) {

}
}
21 changes: 19 additions & 2 deletions keyboards/al1/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ inline uint8_t matrix_cols(void) {
return MATRIX_COLS;
}

__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}

__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}

__attribute__ ((weak))
void matrix_init_user(void) {
}

__attribute__ ((weak))
void matrix_scan_user(void) {
}

void matrix_init(void) {
// initialize row and col
Expand Down Expand Up @@ -104,7 +121,7 @@ uint8_t matrix_key_count(void) {

/* Row pin configuration
*
* row: 0 1 2 3 4 5
* row: 0 1 2 3 4 5
* pin: C7 B1 B2 C6 B4 B5
*
*/
Expand Down Expand Up @@ -181,4 +198,4 @@ static void select_col(uint8_t col) {
else {
PORTD &= ~(1<<PD7);
}
}
}
30 changes: 30 additions & 0 deletions keyboards/comet46/comet46.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include "comet46.h"

void uart_init(void) {
SERIAL_UART_INIT();
}

void led_init(void) {
DDRD |= (1<<1);
PORTD |= (1<<1);
DDRF |= (1<<4) | (1<<5);
PORTF |= (1<<4) | (1<<5);
}

void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
uart_init();
led_init();
}

void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}

void led_set_kb(uint8_t usb_led) {

}
79 changes: 79 additions & 0 deletions keyboards/comet46/comet46.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#ifndef COMET46_H
#define COMET46_H

#include "quantum.h"
#include "matrix.h"
#include "backlight.h"
#include <stddef.h>

#define red_led_off PORTF |= (1<<5)
#define red_led_on PORTF &= ~(1<<5)
#define blu_led_off PORTF |= (1<<4)
#define blu_led_on PORTF &= ~(1<<4)
#define grn_led_off PORTD |= (1<<1)
#define grn_led_on PORTD &= ~(1<<1)

#define set_led_off red_led_off; grn_led_off; blu_led_off
#define set_led_red red_led_on; grn_led_off; blu_led_off
#define set_led_blue red_led_off; grn_led_off; blu_led_on
#define set_led_green red_led_off; grn_led_on; blu_led_off
#define set_led_yellow red_led_on; grn_led_on; blu_led_off
#define set_led_magenta red_led_on; grn_led_off; blu_led_on
#define set_led_cyan red_led_off; grn_led_on; blu_led_on
#define set_led_white red_led_on; grn_led_on; blu_led_on

/*
#define LED_B 5
#define LED_R 6
#define LED_G 7

#define all_leds_off PORTF &= ~(1<<LED_B) & ~(1<<LED_R) & ~(1<<LED_G)

#define red_led_on PORTF |= (1<<LED_R)
#define red_led_off PORTF &= ~(1<<LED_R)
#define grn_led_on PORTF |= (1<<LED_G)
#define grn_led_off PORTF &= ~(1<<LED_G)
#define blu_led_on PORTF |= (1<<LED_B)
#define blu_led_off PORTF &= ~(1<<LED_B)

#define set_led_off PORTF &= ~(1<<LED_B) & ~(1<<LED_R) & ~(1<<LED_G)
#define set_led_red PORTF = PORTF & ~(1<<LED_B) & ~(1<<LED_G) | (1<<LED_R)
#define set_led_blue PORTF = PORTF & ~(1<<LED_G) & ~(1<<LED_R) | (1<<LED_B)
#define set_led_green PORTF = PORTF & ~(1<<LED_B) & ~(1<<LED_R) | (1<<LED_G)
#define set_led_yellow PORTF = PORTF & ~(1<<LED_B) | (1<<LED_R) | (1<<LED_G)
#define set_led_magenta PORTF = PORTF & ~(1<<LED_G) | (1<<LED_R) | (1<<LED_B)
#define set_led_cyan PORTF = PORTF & ~(1<<LED_R) | (1<<LED_B) | (1<<LED_G)
#define set_led_white PORTF |= (1<<LED_B) | (1<<LED_R) | (1<<LED_G)
*/

// This a shortcut to help you visually see your layout.
// The first section contains all of the arguements
// The second converts the arguments into a two-dimensional array
#define LAYOUT_kc( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11,\
k12, k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25,\
k26, k27, k28, k29, k31, k32, k33, k34, k35, k36, k37, k38, k41, k42,\
k43, k44, k45, k46, k47, k48 \
) \
{ \
{ KC_##k13, KC_##k01, KC_##k26, KC_##k12, KC_##k00, KC_##k11, KC_##k25, KC_##k42, KC_##k10, KC_##k24}, \
{ KC_##k03, KC_##k28, KC_##k14, KC_##k02, KC_##k27, KC_##k41, KC_##k09, KC_##k23, KC_##k38, KC_##k08}, \
{ KC_##k31, KC_##k16, KC_##k04, KC_##k29, KC_##k15, KC_##k22, KC_##k37, KC_##k07, KC_##k21, KC_##k36}, \
{ KC_NO, KC_##k32, KC_##k17, KC_##k05, KC_##k43, KC_##k48, KC_##k06, KC_##k20, KC_##k35, KC_NO }, \
{ KC_NO, KC_##k45, KC_##k33, KC_##k18, KC_##k44, KC_##k47, KC_##k19, KC_##k34, KC_##k46, KC_NO }, \
}

#define LAYOUT( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11,\
k12, k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25,\
k26, k27, k28, k29, k31, k32, k33, k34, k35, k36, k37, k38, k41, k42,\
k43, k44, k45, k46, k47, k48 \
) \
{ \
{ k13, k01, k26, k12, k00, k11, k25, k42, k10, k24}, \
{ k03, k28, k14, k02, k27, k41, k09, k23, k38, k08}, \
{ k31, k16, k04, k29, k15, k22, k37, k07, k21, k36}, \
{ KC_NO, k32, k17, k05, k43, k48, k06, k20, k35, KC_NO }, \
{ KC_NO, k45, k33, k18, k44, k47, k19, k34, k46, KC_NO }, \
}
#endif
87 changes: 87 additions & 0 deletions keyboards/comet46/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
Copyright 2012 Jun Wako <[email protected]>

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/>.
*/

#ifndef CONFIG_H
#define CONFIG_H

#include "config_common.h"

/* USB Device descriptor parameter */

#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x6060
#define DEVICE_VER 0x0001
#define MANUFACTURER SatT
#define PRODUCT Comet46
#define DESCRIPTION qmk keyboard firmware for Comet46

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 10

/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST

/* number of backlight levels */
//#define BACKLIGHT_LEVELS 3

#define ONESHOT_TIMEOUT 500


/* key combination for command */
#define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

#define PREVENT_STUCK_MODIFIERS

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION

//UART settings for communication with the RF microcontroller
#define SERIAL_UART_BAUD 1000000
#define SERIAL_UART_DATA UDR1
#define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
#define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1))
#define SERIAL_UART_INIT() do { \
/* baud rate */ \
UBRR1L = SERIAL_UART_UBRR; \
/* baud rate */ \
UBRR1H = SERIAL_UART_UBRR >> 8; \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
} while(0)

#endif
Loading