mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-25 08:31:27 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
07142ffaa2
@ -10,6 +10,9 @@
|
|||||||
// deprecated: Default `false`. Set to `true` to turn on warning when a value exists
|
// deprecated: Default `false`. Set to `true` to turn on warning when a value exists
|
||||||
// invalid: Default `false`. Set to `true` to generate errors when a value exists
|
// invalid: Default `false`. Set to `true` to generate errors when a value exists
|
||||||
// replace_with: use with a key marked deprecated or invalid to designate a replacement
|
// replace_with: use with a key marked deprecated or invalid to designate a replacement
|
||||||
|
"APA102_DI_PIN": {"info_key": "apa102.data_pin"},
|
||||||
|
"APA102_CI_PIN": {"info_key": "apa102.clock_pin"},
|
||||||
|
"APA102_DEFAULT_BRIGHTNESS": {"info_key": "apa102.default_brightness", "value_type": "int"},
|
||||||
"AUDIO_VOICES": {"info_key": "audio.voices", "value_type": "bool"},
|
"AUDIO_VOICES": {"info_key": "audio.voices", "value_type": "bool"},
|
||||||
"BACKLIGHT_BREATHING": {"info_key": "backlight.breathing", "value_type": "bool"},
|
"BACKLIGHT_BREATHING": {"info_key": "backlight.breathing", "value_type": "bool"},
|
||||||
"BREATHING_PERIOD": {"info_key": "backlight.breathing_period", "value_type": "int"},
|
"BREATHING_PERIOD": {"info_key": "backlight.breathing_period", "value_type": "int"},
|
||||||
|
@ -96,6 +96,19 @@
|
|||||||
"unknown"
|
"unknown"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"apa102": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"data_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
|
||||||
|
"clock_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
|
||||||
|
"default_brightness": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 31
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"audio": {
|
"audio": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -383,9 +383,9 @@ Configure the hardware via your `config.h`:
|
|||||||
|
|
||||||
```c
|
```c
|
||||||
// The pin connected to the data pin of the LEDs
|
// The pin connected to the data pin of the LEDs
|
||||||
#define RGB_DI_PIN D7
|
#define APA102_DI_PIN D7
|
||||||
// The pin connected to the clock pin of the LEDs
|
// The pin connected to the clock pin of the LEDs
|
||||||
#define RGB_CI_PIN D6
|
#define APA102_CI_PIN D6
|
||||||
// The number of LEDs connected
|
// The number of LEDs connected
|
||||||
#define RGB_MATRIX_LED_COUNT 70
|
#define RGB_MATRIX_LED_COUNT 70
|
||||||
```
|
```
|
||||||
|
@ -35,8 +35,9 @@ At minimum you must define the data pin your LED strip is connected to, and the
|
|||||||
|
|
||||||
|Define |Description |
|
|Define |Description |
|
||||||
|---------------|---------------------------------------------------------------------------------------------------------|
|
|---------------|---------------------------------------------------------------------------------------------------------|
|
||||||
|`RGB_DI_PIN` |The pin connected to the data pin of the LEDs |
|
|`RGB_DI_PIN` |The pin connected to the data pin of the LEDs (WS2812) |
|
||||||
|`RGB_CI_PIN` |The pin connected to the clock pin of the LEDs (APA102 only) |
|
|`APA102_DI_PIN`|The pin connected to the data pin of the LEDs (APA102) |
|
||||||
|
|`APA102_CI_PIN`|The pin connected to the clock pin of the LEDs (APA102) |
|
||||||
|`RGBLED_NUM` |The number of LEDs connected |
|
|`RGBLED_NUM` |The number of LEDs connected |
|
||||||
|`RGBLED_SPLIT` |(Optional) For split keyboards, the number of LEDs connected on each half directly wired to `RGB_DI_PIN` |
|
|`RGBLED_SPLIT` |(Optional) For split keyboards, the number of LEDs connected on each half directly wired to `RGB_DI_PIN` |
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
# if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103)
|
# if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103)
|
||||||
# define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns
|
# define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns
|
||||||
# else
|
# else
|
||||||
# error("APA102_NOPS configuration required")
|
# error APA102_NOPS configuration required
|
||||||
# define APA102_NOPS 0 // this just pleases the compile so the above error is easier to spot
|
# define APA102_NOPS 0 // this just pleases the compile so the above error is easier to spot
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
@ -43,14 +43,14 @@
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define APA102_SEND_BIT(byte, bit) \
|
#define APA102_SEND_BIT(byte, bit) \
|
||||||
do { \
|
do { \
|
||||||
writePin(RGB_DI_PIN, (byte >> bit) & 1); \
|
writePin(APA102_DI_PIN, (byte >> bit) & 1); \
|
||||||
io_wait; \
|
io_wait; \
|
||||||
writePinHigh(RGB_CI_PIN); \
|
writePinHigh(APA102_CI_PIN); \
|
||||||
io_wait; \
|
io_wait; \
|
||||||
writePinLow(RGB_CI_PIN); \
|
writePinLow(APA102_CI_PIN); \
|
||||||
io_wait; \
|
io_wait; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
uint8_t apa102_led_brightness = APA102_DEFAULT_BRIGHTNESS;
|
uint8_t apa102_led_brightness = APA102_DEFAULT_BRIGHTNESS;
|
||||||
@ -77,11 +77,11 @@ void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void static apa102_init(void) {
|
void static apa102_init(void) {
|
||||||
setPinOutput(RGB_DI_PIN);
|
setPinOutput(APA102_DI_PIN);
|
||||||
setPinOutput(RGB_CI_PIN);
|
setPinOutput(APA102_CI_PIN);
|
||||||
|
|
||||||
writePinLow(RGB_DI_PIN);
|
writePinLow(APA102_DI_PIN);
|
||||||
writePinLow(RGB_CI_PIN);
|
writePinLow(APA102_CI_PIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
void apa102_set_brightness(uint8_t brightness) {
|
void apa102_set_brightness(uint8_t brightness) {
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
|
#include "oled_helper.h"
|
||||||
|
#include "quantum.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef OLED_ENABLE
|
#ifdef OLED_ENABLE
|
||||||
# include QMK_KEYBOARD_H
|
|
||||||
# include <stdio.h>
|
|
||||||
# include <string.h>
|
|
||||||
|
|
||||||
void render_logo(void) {
|
void render_logo(void) {
|
||||||
static const char PROGMEM logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0};
|
static const char PROGMEM logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0};
|
||||||
|
@ -24,7 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* to repeating that information all over the place.
|
* to repeating that information all over the place.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "matrix.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "wait.h"
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
|
|
||||||
extern i2c_status_t tca9555_status;
|
extern i2c_status_t tca9555_status;
|
||||||
|
@ -24,7 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* to repeating that information all over the place.
|
* to repeating that information all over the place.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "matrix.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "wait.h"
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
|
|
||||||
extern i2c_status_t tca9555_status;
|
extern i2c_status_t tca9555_status;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
led_config_t g_led_config = {
|
led_config_t g_led_config = {
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef OLED_ENABLE
|
#ifdef OLED_ENABLE
|
||||||
static void render_logo(void) {
|
static void render_logo(void) {
|
||||||
|
@ -17,7 +17,9 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "matrix.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "wait.h"
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
|
|
||||||
@ -134,14 +136,14 @@ uint8_t rts_reset(void) {
|
|||||||
if (firstread) {
|
if (firstread) {
|
||||||
writePinLow(RTS_PIN);
|
writePinLow(RTS_PIN);
|
||||||
}
|
}
|
||||||
_delay_ms(10);
|
wait_ms(10);
|
||||||
writePinHigh(RTS_PIN);
|
writePinHigh(RTS_PIN);
|
||||||
|
|
||||||
|
|
||||||
/* the future is Arm
|
/* the future is Arm
|
||||||
if (!palReadPad(RTS_PIN_IOPRT))
|
if (!palReadPad(RTS_PIN_IOPRT))
|
||||||
{
|
{
|
||||||
_delay_ms(10);
|
wait_ms(10);
|
||||||
palSetPadMode(RTS_PINn_IOPORT, PinDirectionOutput_PUSHPULL);
|
palSetPadMode(RTS_PINn_IOPORT, PinDirectionOutput_PUSHPULL);
|
||||||
palSetPad(RTS_PORT, RTS_PIN);
|
palSetPad(RTS_PORT, RTS_PIN);
|
||||||
}
|
}
|
||||||
@ -150,13 +152,13 @@ uint8_t rts_reset(void) {
|
|||||||
palSetPadMode(RTS_PIN_RTS_PORT, PinDirectionOutput_PUSHPULL);
|
palSetPadMode(RTS_PIN_RTS_PORT, PinDirectionOutput_PUSHPULL);
|
||||||
palSetPad(RTS_PORT, RTS_PIN);
|
palSetPad(RTS_PORT, RTS_PIN);
|
||||||
palClearPad(RTS_PORT, RTS_PIN);
|
palClearPad(RTS_PORT, RTS_PIN);
|
||||||
_delay_ms(10);
|
wait_ms(10);
|
||||||
palSetPad(RTS_PORT, RTS_PIN);
|
palSetPad(RTS_PORT, RTS_PIN);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
_delay_ms(5);
|
wait_ms(5);
|
||||||
//print("rts\n");
|
//print("rts\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -222,7 +224,7 @@ uint8_t handspring_handshake(void) {
|
|||||||
|
|
||||||
uint8_t handspring_reset(void) {
|
uint8_t handspring_reset(void) {
|
||||||
writePinLow(VCC_PIN);
|
writePinLow(VCC_PIN);
|
||||||
_delay_ms(5);
|
wait_ms(5);
|
||||||
writePinHigh(VCC_PIN);
|
writePinHigh(VCC_PIN);
|
||||||
|
|
||||||
if ( handspring_handshake() ) {
|
if ( handspring_handshake() ) {
|
||||||
@ -257,7 +259,7 @@ void matrix_init(void)
|
|||||||
last_activity = timer_read();
|
last_activity = timer_read();
|
||||||
} else {
|
} else {
|
||||||
print("failed handshake");
|
print("failed handshake");
|
||||||
_delay_ms(1000);
|
wait_ms(1000);
|
||||||
//BUG /should/ power cycle or toggle RTS & reset, but this usually works.
|
//BUG /should/ power cycle or toggle RTS & reset, but this usually works.
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,7 +273,7 @@ void matrix_init(void)
|
|||||||
last_activity = timer_read();
|
last_activity = timer_read();
|
||||||
} else {
|
} else {
|
||||||
print("failed handshake");
|
print("failed handshake");
|
||||||
_delay_ms(1000);
|
wait_ms(1000);
|
||||||
//BUG /should/ power cycle or toggle RTS & reset, but this usually works.
|
//BUG /should/ power cycle or toggle RTS & reset, but this usually works.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "uart.h"
|
|
||||||
|
|
||||||
bool sun_bell = false;
|
|
||||||
bool sun_click = false;
|
|
||||||
|
|
||||||
|
|
||||||
bool command_extra(uint8_t code)
|
|
||||||
{
|
|
||||||
switch (code) {
|
|
||||||
case KC_H:
|
|
||||||
case KC_SLASH: /* ? */
|
|
||||||
print("\n\n----- Sun converter Help -----\n");
|
|
||||||
print("Home: Toggle Bell\n");
|
|
||||||
print("End: Toggle Click\n");
|
|
||||||
print("PgUp: LED all On\n");
|
|
||||||
print("PgDown: LED all Off\n");
|
|
||||||
print("Insert: Layout\n");
|
|
||||||
print("Delete: Reset\n");
|
|
||||||
return false;
|
|
||||||
case KC_DEL:
|
|
||||||
print("Reset\n");
|
|
||||||
uart_write(0x01);
|
|
||||||
break;
|
|
||||||
case KC_HOME:
|
|
||||||
sun_bell = !sun_bell;
|
|
||||||
if (sun_bell) {
|
|
||||||
print("Bell On\n");
|
|
||||||
uart_write(0x02);
|
|
||||||
} else {
|
|
||||||
print("Bell Off\n");
|
|
||||||
uart_write(0x03);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case KC_END:
|
|
||||||
sun_click = !sun_click;
|
|
||||||
if (sun_click) {
|
|
||||||
print("Click On\n");
|
|
||||||
uart_write(0x0A);
|
|
||||||
} else {
|
|
||||||
print("Click Off\n");
|
|
||||||
uart_write(0x0B);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case KC_PGUP:
|
|
||||||
print("LED all on\n");
|
|
||||||
uart_write(0x0E);
|
|
||||||
uart_write(0xFF);
|
|
||||||
break;
|
|
||||||
case KC_PGDN:
|
|
||||||
print("LED all off\n");
|
|
||||||
uart_write(0x0E);
|
|
||||||
uart_write(0x00);
|
|
||||||
break;
|
|
||||||
case KC_INSERT:
|
|
||||||
print("layout\n");
|
|
||||||
uart_write(0x0F);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
xprintf("Unknown extra command: %02X\n", code);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
@ -15,7 +15,8 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "led.h"
|
||||||
|
#include "print.h"
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
|
|
||||||
void led_set(uint8_t usb_led)
|
void led_set(uint8_t usb_led)
|
||||||
|
@ -15,7 +15,11 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "matrix.h"
|
||||||
|
#include "host.h"
|
||||||
|
#include "led.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "wait.h"
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -86,9 +90,9 @@ void matrix_init(void)
|
|||||||
/* print("."); */
|
/* print("."); */
|
||||||
/* while (uart_read()); */
|
/* while (uart_read()); */
|
||||||
/* uart_write(0x01); */
|
/* uart_write(0x01); */
|
||||||
/* _delay_ms(500); */
|
/* wait_ms(500); */
|
||||||
/* if (uart_read() == 0xFF) { */
|
/* if (uart_read() == 0xFF) { */
|
||||||
/* _delay_ms(500); */
|
/* wait_ms(500); */
|
||||||
/* if (uart_read() == 0x04) */
|
/* if (uart_read() == 0x04) */
|
||||||
/* break; */
|
/* break; */
|
||||||
/* } */
|
/* } */
|
||||||
@ -112,7 +116,7 @@ uint8_t matrix_scan(void)
|
|||||||
switch (code) {
|
switch (code) {
|
||||||
case 0xFF: // reset success: FF 04
|
case 0xFF: // reset success: FF 04
|
||||||
print("reset: ");
|
print("reset: ");
|
||||||
_delay_ms(500);
|
wait_ms(500);
|
||||||
code = uart_read();
|
code = uart_read();
|
||||||
xprintf("%02X\n", code);
|
xprintf("%02X\n", code);
|
||||||
if (code == 0x04) {
|
if (code == 0x04) {
|
||||||
@ -122,12 +126,12 @@ uint8_t matrix_scan(void)
|
|||||||
return 0;
|
return 0;
|
||||||
case 0xFE: // layout: FE <layout>
|
case 0xFE: // layout: FE <layout>
|
||||||
print("layout: ");
|
print("layout: ");
|
||||||
_delay_ms(500);
|
wait_ms(500);
|
||||||
xprintf("%02X\n", uart_read());
|
xprintf("%02X\n", uart_read());
|
||||||
return 0;
|
return 0;
|
||||||
case 0x7E: // reset fail: 7E 01
|
case 0x7E: // reset fail: 7E 01
|
||||||
print("reset fail: ");
|
print("reset fail: ");
|
||||||
_delay_ms(500);
|
wait_ms(500);
|
||||||
xprintf("%02X\n", uart_read());
|
xprintf("%02X\n", uart_read());
|
||||||
return 0;
|
return 0;
|
||||||
case 0x7F:
|
case 0x7F:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
#if defined (XMK_DEBUG)
|
#if defined (XMK_DEBUG)
|
||||||
void keyboard_post_init_kb(void) {
|
void keyboard_post_init_kb(void) {
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include "xmk_matrix.h"
|
#include "xmk_matrix.h"
|
||||||
|
#include "matrix.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
bool xmk_changed = false;
|
bool xmk_changed = false;
|
||||||
matrix_row_t xmk_rows[MATRIX_ROWS];
|
matrix_row_t xmk_rows[MATRIX_ROWS];
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
void xmk_matrix_key(bool press, uint8_t key);
|
void xmk_matrix_key(bool press, uint8_t key);
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
|
#include "quantum.h"
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "crkbd.h"
|
|
||||||
|
|
||||||
// in the future, should use (1U<<_LAYER_NAME) instead, but needs to be moved to keymap,c
|
// in the future, should use (1U<<_LAYER_NAME) instead, but needs to be moved to keymap,c
|
||||||
#define L_BASE 0
|
#define L_BASE 0
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern rgblight_config_t rgblight_config;
|
extern rgblight_config_t rgblight_config;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2023 Colin Kinloch (@ColinKinloch)
|
// Copyright 2023 Colin Kinloch (@ColinKinloch)
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
static uint8_t anim = 0;
|
static uint8_t anim = 0;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
#include "ergodox_stm32.h"
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
|
|
||||||
extern inline void ergodox_board_led_1_on(void);
|
extern inline void ergodox_board_led_1_on(void);
|
||||||
extern inline void ergodox_board_led_2_on(void);
|
extern inline void ergodox_board_led_2_on(void);
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#include <stdint.h>
|
#include "matrix.h"
|
||||||
#include <stdbool.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <hal.h>
|
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
#include "print.h"
|
#include "debug.h"
|
||||||
#include "matrix.h"
|
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
#include QMK_KEYBOARD_H
|
#include "ergodox_stm32.h"
|
||||||
|
|
||||||
#ifndef DEBOUNCE
|
#ifndef DEBOUNCE
|
||||||
#define DEBOUNCE 10
|
#define DEBOUNCE 10
|
||||||
|
@ -29,8 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
#include "avr/timer_avr.h"
|
#include "avr/timer_avr.h"
|
||||||
// #include QMK_KEYBOARD_H
|
|
||||||
|
|
||||||
|
|
||||||
// Timer resolution check
|
// Timer resolution check
|
||||||
#if (1000000/TIMER_RAW_FREQ > 20)
|
#if (1000000/TIMER_RAW_FREQ > 20)
|
||||||
|
@ -23,7 +23,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* to repeating that information all over the place.
|
* to repeating that information all over the place.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "matrix.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "wait.h"
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
|
|
||||||
extern i2c_status_t mcp23017_status;
|
extern i2c_status_t mcp23017_status;
|
||||||
|
@ -23,9 +23,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* to repeating that information all over the place.
|
* to repeating that information all over the place.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "matrix.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "wait.h"
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
#include <print.h>
|
|
||||||
|
|
||||||
extern i2c_status_t mcp23017_status;
|
extern i2c_status_t mcp23017_status;
|
||||||
#define MCP23017_I2C_TIMEOUT 1000
|
#define MCP23017_I2C_TIMEOUT 1000
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "butterstick.h"
|
||||||
#include "mousekey.h"
|
#include "mousekey.h"
|
||||||
#include "keymap_steno.h"
|
#include "keymap_steno.h"
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
|
@ -11,13 +11,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
|
#include "quantum.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "config_engine.h"
|
#include "config_engine.h"
|
||||||
#include <avr/pgmspace.h>
|
|
||||||
#include "wait.h"
|
|
||||||
|
|
||||||
// Maximum values for combos
|
// Maximum values for combos
|
||||||
#define COMBO_END 0x00
|
#define COMBO_END 0x00
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include "ergotaco.h"
|
||||||
|
|
||||||
bool i2c_initialized = 0;
|
bool i2c_initialized = 0;
|
||||||
i2c_status_t mcp23018_status = 0x20;
|
i2c_status_t mcp23018_status = 0x20;
|
||||||
|
@ -17,15 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <avr/io.h>
|
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
#include "action_layer.h"
|
|
||||||
#include "print.h"
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include QMK_KEYBOARD_H
|
#include "ergotaco.h"
|
||||||
|
|
||||||
#ifndef DEBOUNCE
|
#ifndef DEBOUNCE
|
||||||
# define DEBOUNCE 5
|
# define DEBOUNCE 5
|
||||||
|
@ -12,16 +12,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "config_engine.h"
|
#include "config_engine.h"
|
||||||
#include <avr/pgmspace.h>
|
|
||||||
#include "wait.h"
|
|
||||||
#ifdef MOUSEKEY_ENABLE
|
|
||||||
# include "mousekey.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Set defaults
|
// Set defaults
|
||||||
#ifndef IN_CHORD_MASK
|
#ifndef IN_CHORD_MASK
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include "georgi.h"
|
||||||
|
|
||||||
bool i2c_initialized = 0;
|
bool i2c_initialized = 0;
|
||||||
i2c_status_t mcp23018_status = 0x20;
|
i2c_status_t mcp23018_status = 0x20;
|
||||||
|
@ -17,16 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <avr/io.h>
|
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
#include "action_layer.h"
|
|
||||||
#include "print.h"
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "keymap_steno.h"
|
#include "georgi.h"
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
|
|
||||||
#ifndef DEBOUNCE
|
#ifndef DEBOUNCE
|
||||||
# define DEBOUNCE 5
|
# define DEBOUNCE 5
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
// Amen.
|
// Amen.
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "georgi.h"
|
||||||
#include "mousekey.h"
|
#include "mousekey.h"
|
||||||
#include "keymap_steno.h"
|
#include "keymap_steno.h"
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include "gergo.h"
|
||||||
|
|
||||||
bool i2c_initialized = 0;
|
bool i2c_initialized = 0;
|
||||||
i2c_status_t mcp23018_status = 0x20;
|
i2c_status_t mcp23018_status = 0x20;
|
||||||
|
@ -17,16 +17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <avr/io.h>
|
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
#include "action_layer.h"
|
|
||||||
#include "print.h"
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "debounce.h"
|
#include "debounce.h"
|
||||||
#include QMK_KEYBOARD_H
|
#include "gergo.h"
|
||||||
|
|
||||||
#ifdef BALLER
|
#ifdef BALLER
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2022 gachiham (@gachiham)
|
// Copyright 2022 gachiham (@gachiham)
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
const matrix_row_t matrix_mask[MATRIX_ROWS] = {
|
const matrix_row_t matrix_mask[MATRIX_ROWS] = {
|
||||||
0b1111111111111110,
|
0b1111111111111110,
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN A2
|
|
||||||
|
|
||||||
#define SOLENOID_PIN B12
|
#define SOLENOID_PIN B12
|
||||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||||
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
||||||
|
@ -10,5 +10,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A1"
|
"pin": "A1"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A1",
|
||||||
|
"clock_pin": "A2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN A2
|
|
||||||
|
|
||||||
#define SOLENOID_PIN B12
|
#define SOLENOID_PIN B12
|
||||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||||
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A1"
|
"pin": "A1"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A1",
|
||||||
|
"clock_pin": "A2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN A2
|
|
||||||
|
|
||||||
#define SOLENOID_PIN B12
|
#define SOLENOID_PIN B12
|
||||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||||
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
||||||
|
@ -10,5 +10,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A1"
|
"pin": "A1"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A1",
|
||||||
|
"clock_pin": "A2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN A2
|
|
||||||
|
|
||||||
#define SOLENOID_PIN B12
|
#define SOLENOID_PIN B12
|
||||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||||
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A1"
|
"pin": "A1"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A1",
|
||||||
|
"clock_pin": "A2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,5 +21,3 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 1
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN A2
|
|
||||||
|
@ -10,5 +10,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A1"
|
"pin": "A1"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A1",
|
||||||
|
"clock_pin": "A2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN A2
|
|
||||||
|
|
||||||
// This code does not fit into the really small flash of STM32F103x6 together
|
// This code does not fit into the really small flash of STM32F103x6 together
|
||||||
// with CONSOLE_ENABLE=yes, and the debugging console is probably more
|
// with CONSOLE_ENABLE=yes, and the debugging console is probably more
|
||||||
// important for the "onekey" testing firmware. In a real firmware you may be
|
// important for the "onekey" testing firmware. In a real firmware you may be
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A1"
|
"pin": "A1"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A1",
|
||||||
|
"clock_pin": "A2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,5 +21,3 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 1
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN A2
|
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A1"
|
"pin": "A1"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A1",
|
||||||
|
"clock_pin": "A2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
#define RGB_CI_PIN B1
|
|
||||||
|
|
||||||
#define ADC_PIN F6
|
#define ADC_PIN F6
|
||||||
|
|
||||||
#define QMK_WAITING_TEST_BUSY_PIN F6
|
#define QMK_WAITING_TEST_BUSY_PIN F6
|
||||||
|
@ -10,5 +10,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "F6"
|
"pin": "F6"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "F6",
|
||||||
|
"clock_pin": "B1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#define BACKLIGHT_PAL_MODE 2
|
#define BACKLIGHT_PAL_MODE 2
|
||||||
|
|
||||||
#define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4)))
|
#define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4)))
|
||||||
#define RGB_CI_PIN B8
|
|
||||||
|
|
||||||
#define SOLENOID_PIN B12
|
#define SOLENOID_PIN B12
|
||||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A0"
|
"pin": "A0"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A0",
|
||||||
|
"clock_pin": "B8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#define BACKLIGHT_PAL_MODE 2
|
#define BACKLIGHT_PAL_MODE 2
|
||||||
|
|
||||||
#define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4)))
|
#define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4)))
|
||||||
#define RGB_CI_PIN B8
|
|
||||||
|
|
||||||
#define SOLENOID_PIN B12
|
#define SOLENOID_PIN B12
|
||||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A0"
|
"pin": "A0"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A0",
|
||||||
|
"clock_pin": "B8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 3
|
#define BACKLIGHT_PWM_CHANNEL 3
|
||||||
#define BACKLIGHT_PAL_MODE 2
|
#define BACKLIGHT_PAL_MODE 2
|
||||||
|
|
||||||
#define RGB_CI_PIN B13
|
|
||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A0"
|
"pin": "A0"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A0",
|
||||||
|
"clock_pin": "B13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,4 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 3
|
#define BACKLIGHT_PWM_CHANNEL 3
|
||||||
#define BACKLIGHT_PAL_MODE 2
|
#define BACKLIGHT_PAL_MODE 2
|
||||||
|
|
||||||
#define RGB_CI_PIN B13
|
|
||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A0"
|
"pin": "A0"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A0",
|
||||||
|
"clock_pin": "B13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
#define RGB_CI_PIN B1
|
|
||||||
|
|
||||||
#define ADC_PIN F6
|
#define ADC_PIN F6
|
||||||
|
|
||||||
#define QMK_WAITING_TEST_BUSY_PIN F6
|
#define QMK_WAITING_TEST_BUSY_PIN F6
|
||||||
|
@ -10,5 +10,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "F6"
|
"pin": "F6"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "F6",
|
||||||
|
"clock_pin": "B1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,4 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 3
|
#define BACKLIGHT_PWM_CHANNEL 3
|
||||||
#define BACKLIGHT_PAL_MODE 2
|
#define BACKLIGHT_PAL_MODE 2
|
||||||
|
|
||||||
#define RGB_CI_PIN B13
|
|
||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
@ -10,5 +10,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A0"
|
"pin": "A0"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A0",
|
||||||
|
"clock_pin": "B13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
#define BACKLIGHT_PWM_DRIVER PWMD5 /* GD32 numbering scheme starts from 0, TIMER4 on GD32 boards is TIMER5 on STM32 boards. */
|
#define BACKLIGHT_PWM_DRIVER PWMD5 /* GD32 numbering scheme starts from 0, TIMER4 on GD32 boards is TIMER5 on STM32 boards. */
|
||||||
#define BACKLIGHT_PWM_CHANNEL 2 /* GD32 numbering scheme starts from 0, Channel 1 on GD32 boards is Channel 2 on STM32 boards. */
|
#define BACKLIGHT_PWM_CHANNEL 2 /* GD32 numbering scheme starts from 0, Channel 1 on GD32 boards is Channel 2 on STM32 boards. */
|
||||||
|
|
||||||
#define RGB_CI_PIN B13
|
|
||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define I2C1_CLOCK_SPEED 1000000 /* GD32VF103 supports fast mode plus. */
|
#define I2C1_CLOCK_SPEED 1000000 /* GD32VF103 supports fast mode plus. */
|
||||||
|
@ -12,5 +12,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "A2"
|
"pin": "A2"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "A2",
|
||||||
|
"clock_pin": "B13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,5 +22,3 @@
|
|||||||
#define BACKLIGHT_PAL_MODE 0
|
#define BACKLIGHT_PAL_MODE 0
|
||||||
|
|
||||||
#define ADC_PIN A0
|
#define ADC_PIN A0
|
||||||
|
|
||||||
#define RGB_CI_PIN B13
|
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "B15"
|
"pin": "B15"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "B15",
|
||||||
|
"clock_pin": "B13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,5 @@
|
|||||||
|
|
||||||
#define ADC_PIN F6
|
#define ADC_PIN F6
|
||||||
|
|
||||||
#define RGB_CI_PIN F7
|
|
||||||
|
|
||||||
#define QMK_WAITING_TEST_BUSY_PIN F6
|
#define QMK_WAITING_TEST_BUSY_PIN F6
|
||||||
#define QMK_WAITING_TEST_YIELD_PIN F7
|
#define QMK_WAITING_TEST_YIELD_PIN F7
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "F6"
|
"pin": "F6"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "F6",
|
||||||
|
"clock_pin": "F7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,5 @@
|
|||||||
|
|
||||||
#define ADC_PIN F6
|
#define ADC_PIN F6
|
||||||
|
|
||||||
#define RGB_CI_PIN F7
|
|
||||||
|
|
||||||
#define QMK_WAITING_TEST_BUSY_PIN F6
|
#define QMK_WAITING_TEST_BUSY_PIN F6
|
||||||
#define QMK_WAITING_TEST_YIELD_PIN F7
|
#define QMK_WAITING_TEST_YIELD_PIN F7
|
||||||
|
@ -11,5 +11,9 @@
|
|||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"pin": "F6"
|
"pin": "F6"
|
||||||
|
},
|
||||||
|
"apa102": {
|
||||||
|
"data_pin": "F6",
|
||||||
|
"clock_pin": "F7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
// Copyright 2022 Andy Tsai (@atsai)
|
// Copyright 2022 Andy Tsai (@atsai)
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
static uint16_t buzzer_timer = 0;
|
static uint16_t buzzer_timer = 0;
|
||||||
static uint8_t buzzer_dwell = 15;
|
static uint8_t buzzer_dwell = 15;
|
||||||
static uint8_t buzzer_dwell_change = 1;
|
static uint8_t buzzer_dwell_change = 1;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Copyright 2022 Drashna Jael're (@Drashna Jael're)
|
// Copyright 2022 Drashna Jael're (@Drashna Jael're)
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "hotdox76v2.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <transactions.h>
|
#include <transactions.h>
|
||||||
#include "oled_font_lib/logo2.h"
|
#include "oled_font_lib/logo2.h"
|
||||||
|
@ -23,7 +23,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* to repeating that information all over the place.
|
* to repeating that information all over the place.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "matrix.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "wait.h"
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
|
|
||||||
extern i2c_status_t mcp23017_status;
|
extern i2c_status_t mcp23017_status;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include "ergodox_infinity.h"
|
||||||
#include <ch.h>
|
#include <ch.h>
|
||||||
#include <hal.h>
|
#include <hal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "kc60se.h"
|
||||||
|
|
||||||
void matrix_init_kb(void){
|
void matrix_init_kb(void){
|
||||||
setPinOutput(B2);
|
setPinOutput(B2);
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "keychron_common.h"
|
#include "keychron_common.h"
|
||||||
|
#include "sync_timer.h"
|
||||||
|
|
||||||
bool is_siri_active = false;
|
bool is_siri_active = false;
|
||||||
uint32_t siri_timer = 0;
|
uint32_t siri_timer = 0;
|
||||||
|
@ -16,10 +16,14 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "stdint.h"
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include "action.h"
|
||||||
|
|
||||||
#ifdef VIA_ENABLE
|
#ifdef VIA_ENABLE
|
||||||
# include "via.h"
|
# include "via.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "quantum_keycodes.h"
|
#include "quantum_keycodes.h"
|
||||||
|
|
||||||
enum custom_keycodes {
|
enum custom_keycodes {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
|
#include "quantum.h"
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define L_BASE 0
|
#define L_BASE 0
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern rgblight_config_t rgblight_config;
|
extern rgblight_config_t rgblight_config;
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
#ifdef OLED_ENABLE
|
#include "oled_helper.h"
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef OLED_ENABLE
|
||||||
|
|
||||||
void render_logo(void) {
|
void render_logo(void) {
|
||||||
|
|
||||||
static const char PROGMEM logo_buf[]={
|
static const char PROGMEM logo_buf[]={
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#include <stdint.h>
|
||||||
|
#include "action.h"
|
||||||
|
|
||||||
#ifdef OLED_ENABLE
|
#ifdef OLED_ENABLE
|
||||||
|
|
||||||
void render_logo(void);
|
void render_logo(void);
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
#ifdef OLED_ENABLE
|
#include "oled_helper.h"
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef OLED_ENABLE
|
||||||
|
|
||||||
void render_logo(void) {
|
void render_logo(void) {
|
||||||
|
|
||||||
const char logo_buf[]={
|
const char logo_buf[]={
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#ifdef OLED_ENABLE
|
#ifdef OLED_ENABLE
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "action.h"
|
||||||
|
|
||||||
void render_logo(void);
|
void render_logo(void);
|
||||||
void update_key_status(uint16_t keycode, keyrecord_t *record);
|
void update_key_status(uint16_t keycode, keyrecord_t *record);
|
||||||
void render_key_status(void);
|
void render_key_status(void);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef ENCODER_ENABLE
|
#ifdef ENCODER_ENABLE
|
||||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* EEPROM management code from ../cannonkeys/stm32f072/keyboard.c
|
* EEPROM management code from ../cannonkeys/stm32f072/keyboard.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "mxss.h"
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
#include "rgblight.h"
|
#include "rgblight.h"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "nack.h"
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
led_config_t g_led_config = { {
|
led_config_t g_led_config = { {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include "nibble.h"
|
||||||
|
|
||||||
// Use Bit-C LED to show CAPS LOCK status
|
// Use Bit-C LED to show CAPS LOCK status
|
||||||
void led_update_ports(led_t led_state) {
|
void led_update_ports(led_t led_state) {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "tidbit.h"
|
||||||
|
|
||||||
typedef struct PACKED {
|
typedef struct PACKED {
|
||||||
uint8_t r;
|
uint8_t r;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include "omnikeyish.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT];
|
dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT];
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
#ifdef OLED_ENABLE
|
#include "oled_helper.h"
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef OLED_ENABLE
|
||||||
|
|
||||||
// returns character cord of the logo by line number
|
// returns character cord of the logo by line number
|
||||||
char *read_logo(int row) {
|
char *read_logo(int row) {
|
||||||
static char logoLines[][18] = {
|
static char logoLines[][18] = {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "mouse.h"
|
||||||
|
|
||||||
#ifndef OPT_DEBOUNCE
|
#ifndef OPT_DEBOUNCE
|
||||||
# define OPT_DEBOUNCE 5 // (ms) Time between scroll events
|
# define OPT_DEBOUNCE 5 // (ms) Time between scroll events
|
||||||
|
@ -15,8 +15,8 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "oled.h"
|
||||||
#include "./lib/oled.h"
|
#include "rubi.h"
|
||||||
|
|
||||||
bool process_record_user_oled(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user_oled(uint16_t keycode, keyrecord_t *record) {
|
||||||
return process_record_user(keycode, record);
|
return process_record_user(keycode, record);
|
||||||
|
@ -17,6 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "progmem.h"
|
||||||
|
|
||||||
#define OLED_FRAME_TIMEOUT (1000 / 30) // 30 fps
|
#define OLED_FRAME_TIMEOUT (1000 / 30) // 30 fps
|
||||||
#define OLED_LOGO_TIMEOUT 3000 // 3 sec
|
#define OLED_LOGO_TIMEOUT 3000 // 3 sec
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "rev1.h"
|
||||||
|
|
||||||
// Defines names for use in layer keycodes and the keymap
|
// Defines names for use in layer keycodes and the keymap
|
||||||
enum layer_names {
|
enum layer_names {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
led_config_t g_led_config = { {
|
led_config_t g_led_config = { {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user