Skip to content

Commit

Permalink
Convert ai03/orbit to SPLIT_KEYBOARD (#15340)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Dec 1, 2021
1 parent 3d06860 commit 1493e6d
Show file tree
Hide file tree
Showing 15 changed files with 115 additions and 1,544 deletions.
13 changes: 6 additions & 7 deletions keyboards/ai03/orbit/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { C7, B4, D7, D6, D4, F1, F0 }
#define MATRIX_ROW_PINS_RIGHT { B6, B5, B4, D7, E6 }
#define MATRIX_COL_PINS_RIGHT { D4, D6, F1, F0, F4, F5, C6 }

#define SPLIT_HAND_PIN D5

//#define USE_I2C

#define SELECT_SOFT_SERIAL_SPEED 1

#define UNUSED_PINS

/* COL2ROW, ROW2COL */
Expand All @@ -60,6 +53,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
*/
#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define SELECT_SOFT_SERIAL_SPEED 1

#define SPLIT_LED_STATE_ENABLE
#define SPLIT_LAYER_STATE_ENABLE

#define SPLIT_HAND_PIN D5

#define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
Expand Down
16 changes: 2 additions & 14 deletions keyboards/ai03/orbit/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case MANUAL:
if (record->event.pressed)
{
// Keypress
if (record->event.pressed) {
SEND_STRING("https://kb.ai03.me/redir/orbit");
}
else
{
// Key release
}
break;
case DBLZERO:
if (record->event.pressed)
{
// Keypress
if (record->event.pressed) {
SEND_STRING("00");
}
else
{
// Key release
}
break;
}
Expand Down
323 changes: 0 additions & 323 deletions keyboards/ai03/orbit/matrix.c

This file was deleted.

Loading

0 comments on commit 1493e6d

Please sign in to comment.