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

adds veilid SAO macropad #23868

Merged
merged 14 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
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
50 changes: 50 additions & 0 deletions keyboards/rot13labs/veilid_sao/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"manufacturer": "rot13labs",
"keyboard_name": "Veilid SAO",
"maintainer": "c0ldbru",
"bootloader": "usbasploader",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": false,
"mousekey": false,
"nkro": false,
"rgb_matrix": true
},
"matrix_pins": {
"cols": ["C0"],
"rows": ["B1"]
},
"processor": "atmega328p",
"usb": {
"device_version": "13.3.7",
"pid": "0xBEEF",
"vid": "0xBEEF"
},
"ws2812": {
"pin": "B0"
},
"rgb_matrix": {
"animations": {
"cycle_left_right": true
},
"driver": "ws2812",
"default": {
"animation": "cycle_left_right"
},
"layout": [
{"flags": 4, "matrix": [0, 0], "x": 0, "y": 0}
],
"max_brightness": 100
},
"community_layouts": ["ortho_1x1"],
"layouts": {
"LAYOUT_ortho_1x1": {
"layout": [
{"label": "Ctrl", "matrix": [0, 0], "x": 0, "y": 0}
]
}
}
}
42 changes: 42 additions & 0 deletions keyboards/rot13labs/veilid_sao/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
Copyright 2012,2013 gezhaoyou <gezhaoyou@126.com>

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/>.
*/
#include QMK_KEYBOARD_H

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case QK_USER_1:
if (record->event.pressed) {
SEND_STRING(SS_DOWN(X_LGUI) SS_TAP(X_SPACE) SS_UP(X_LGUI));
c0ldbru marked this conversation as resolved.
Show resolved Hide resolved
_delay_ms(1000);
SEND_STRING(SS_TAP(X_LGUI));
c0ldbru marked this conversation as resolved.
Show resolved Hide resolved
_delay_ms(1000);
SEND_STRING("terminal");
_delay_ms(1000);
SEND_STRING(SS_TAP(X_ENT));
c0ldbru marked this conversation as resolved.
Show resolved Hide resolved
_delay_ms(1000);
SEND_STRING("open https://veilid.com" SS_TAP(X_ENT));
_delay_ms(1000);
SEND_STRING("start https://veilid.com" SS_TAP(X_ENT));
c0ldbru marked this conversation as resolved.
Show resolved Hide resolved
}
break;
}
return true;
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_1x1(QK_USER_1),
};
18 changes: 18 additions & 0 deletions keyboards/rot13labs/veilid_sao/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# veilid_sao

A customizable 1 key SAO macropad from rot13labs to support Veilid

* Keyboard Maintainer: [c0ldbru](https://github.com/c0ldbru)
* Hardware Supported: veilid_sao // atmega328p
* Hardware Availability: [rot13labs](https://rot13labs.com)
* Support Veilid: [Veilid](https://veilid.com/)

Make example for this keyboard (after setting up your build environment):

make rot13labs/veilid_sao: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).

## Bootloader

You can enter the bootloader to flash on new firmware by holding down the CTRL key while plugging the Veilid SAO in.
Loading