refactor: fruitykeeb/fruitbar/r2

This commit is contained in:
honorless 2023-11-30 00:07:36 -05:00
parent 95ca400548
commit 5cdb09ddaa
No known key found for this signature in database
GPG Key ID: 1B48A311ABE8DA4D
13 changed files with 393 additions and 159 deletions

View File

@ -1,5 +0,0 @@
#pragma once
#define HAL_USE_I2C TRUE
#include_next <halconf.h>

View File

@ -1,96 +0,0 @@
{
"manufacturer": "Fruitykeeb",
"keyboard_name": "fruitbar r2",
"maintainer": "ojthetiny",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"processor": "RP2040",
"features" : {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"oled": true,
"encoder": true
},
"matrix_pins": {
"rows": [ "GP29", "GP18", "GP10", "GP6" ],
"cols": [ "GP25", "GP24", "GP23", "GP22", "GP21", "GP20", "GP17", "GP16", "GP15", "GP13", "GP12", "GP11", "GP9", "GP8", "GP7", "GP3" ]
},
"encoder": {
"rotary": [
{"pin_a": "GP0", "pin_b": "GP1" }
]
},
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x6662",
"vid": "0x666B"
},
"layouts": {
"LAYOUT": {
"layout": [
{ "matrix": [0, 0], "w": 1.5, "x": 0.0, "y": 0.0 },
{ "matrix": [0, 1], "x": 1.5, "y": 0.0 },
{ "matrix": [0, 2], "x": 2.5, "y": 0.0 },
{ "matrix": [0, 3], "x": 3.5, "y": 0.0 },
{ "matrix": [0, 4], "x": 4.5, "y": 0.0 },
{ "matrix": [0, 5], "x": 5.5, "y": 0.0 },
{ "matrix": [0, 6], "x": 6.5, "y": 0.0 },
{ "matrix": [0, 7], "x": 7.5, "y": 0.0 },
{ "matrix": [0, 8], "x": 8.5, "y": 0.0 },
{ "matrix": [0, 9], "x": 9.5, "y": 0.0 },
{ "matrix": [0, 10], "x": 10.5, "y": 0.0 },
{ "matrix": [0, 11], "x": 11.5, "y": 0.0 },
{ "matrix": [0, 12], "x": 12.5, "y": 0.0 },
{ "matrix": [0, 13], "w": 1.5, "x": 13.5, "y": 0.0 },
{ "matrix": [0, 14], "x": 15.5, "y": 0.0 },
{ "matrix": [0, 15], "x": 16.5, "y": 0.0 },
{ "matrix": [1, 0], "w": 1.75, "x": 0.0, "y": 1.0 },
{ "matrix": [1, 1], "x": 1.75, "y": 1.0 },
{ "matrix": [1, 2], "x": 2.75, "y": 1.0 },
{ "matrix": [1, 3], "x": 3.75, "y": 1.0 },
{ "matrix": [1, 4], "x": 4.75, "y": 1.0 },
{ "matrix": [1, 5], "x": 5.75, "y": 1.0 },
{ "matrix": [1, 6], "x": 6.75, "y": 1.0 },
{ "matrix": [1, 7], "x": 7.75, "y": 1.0 },
{ "matrix": [1, 8], "x": 8.75, "y": 1.0 },
{ "matrix": [1, 9], "x": 9.75, "y": 1.0 },
{ "matrix": [1, 10], "x": 10.75, "y": 1.0 },
{ "matrix": [1, 11], "x": 11.75, "y": 1.0 },
{ "matrix": [1, 12], "x": 12.75, "y": 1.0 },
{ "matrix": [1, 13], "w": 1.25, "x": 13.75, "y": 1.0 },
{ "matrix": [2, 0], "w": 1.25, "x": 0.0, "y": 2.0 },
{ "matrix": [2, 1], "x": 1.25, "y": 2.0 },
{ "matrix": [2, 2], "x": 2.25, "y": 2.0 },
{ "matrix": [2, 3], "x": 3.25, "y": 2.0 },
{ "matrix": [2, 4], "x": 4.25, "y": 2.0 },
{ "matrix": [2, 5], "x": 5.25, "y": 2.0 },
{ "matrix": [2, 6], "x": 6.25, "y": 2.0 },
{ "matrix": [2, 7], "x": 7.25, "y": 2.0 },
{ "matrix": [2, 8], "x": 8.25, "y": 2.0 },
{ "matrix": [2, 9], "x": 9.25, "y": 2.0 },
{ "matrix": [2, 10], "x": 10.25, "y": 2.0 },
{ "matrix": [2, 11], "x": 11.25, "y": 2.0 },
{ "matrix": [2, 12], "w": 1.25, "x": 12.25, "y": 2.0 },
{ "matrix": [2, 13], "x": 13.5, "y": 2.0 },
{ "matrix": [2, 14], "x": 15.5, "y": 2.0 },
{ "matrix": [3, 0], "w": 1.25, "x": 0.0, "y": 3.0 },
{ "matrix": [3, 1], "w": 1.25, "x": 1.25, "y": 3.0 },
{ "matrix": [3, 2], "w": 1.25, "x": 2.5, "y": 3.0 },
{ "matrix": [3, 4], "w": 2.75, "x": 3.75, "y": 3.0 },
{ "matrix": [3, 7], "w": 2.25, "x": 6.5, "y": 3.0 },
{ "matrix": [3, 9], "w": 1.25, "x": 8.75, "y": 3.0 },
{ "matrix": [3, 10], "w": 1.25, "x": 10.0, "y": 3.0 },
{ "matrix": [3, 11], "w": 1.25, "x": 11.25, "y": 3.0 },
{ "matrix": [3, 12], "w": 1.25, "x": 12.5, "y": 3.0 },
{ "matrix": [3, 13], "x": 14.5, "y": 3.0 },
{ "matrix": [3, 14], "x": 15.5, "y": 3.0 },
{ "matrix": [3, 15], "x": 16.5, "y": 3.0 }
]
}
}
}

View File

@ -1,22 +0,0 @@
#include QMK_KEYBOARD_H
enum layers{
_BASE,
_FN
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_HOME, KC_END,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_BSLS, KC_ENT,
KC_LSFT, KC_NUHS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(_FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
),
[_FN] = LAYOUT(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, KC_PGDN, KC_PGUP,
KC_CAPS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_TRNS,KC_F12,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
QK_BOOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
)
};

View File

@ -1 +0,0 @@
# Intentionally blank

View File

@ -14,36 +14,25 @@ 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 "encoder.h"
enum layers {
_BASE,
_FN
};
#include "quantum.h"
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_kb(index, clockwise)) { return false; }
if(index == 0) {
if (clockwise) {
tap_code(KC_VOLD);
} else {
tap_code(KC_VOLU);
}
}
return true;
}
void process_layer_state(void) {
oled_write_P(PSTR("Layer: "), false);
switch (get_highest_layer(layer_state)) {
case _BASE:
oled_write_P(PSTR("Default\n"), false);
break;
case _FN:
oled_write_P(PSTR("Function\n"), false);
break;
default:
oled_write_P(PSTR("huh\n"), false);
}
#ifdef OLED_ENABLE
bool oled_task_kb(void) {
if (!oled_task_user()) {
return false;
}
// Layer Status
oled_write_P(PSTR("Layer:"), false);
oled_write_ln(get_u8_str(get_highest_layer(layer_state), ' '), false);
// Host Keyboard LED Status
led_t led_state = host_keyboard_led_state();
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
return true;
}
#endif

View File

@ -0,0 +1,7 @@
{
"manufacturer": "Fruitykeeb",
"url": "https://fruitykeeb.xyz",
"usb": {
"vid": "0x666B"
}
}

View File

@ -20,10 +20,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define I2C1_SCL_PIN GP27
#define I2C1_SDA_PIN GP26
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 200U
/* RGB Definitions
#define RGB_DI_PIN GP28
#define RGBLED_NUM */

View File

@ -0,0 +1,8 @@
// Copyright 2022 @ojthetiny
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define HAL_USE_I2C TRUE
#include_next <halconf.h>

View File

@ -0,0 +1,290 @@
{
"keyboard_name": "Fruitbar r2",
"maintainer": "ojthetiny",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "GP0", "pin_b": "GP1"}
]
},
"features": {
"bootmagic": true,
"encoder": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"oled": true,
"rgblight": true
},
"matrix_pins": {
"cols": ["GP25", "GP24", "GP23", "GP22", "GP21", "GP20", "GP17", "GP16", "GP15", "GP13", "GP12", "GP11", "GP9", "GP8", "GP7", "GP3"],
"rows": ["GP29", "GP18", "GP10", "GP6"]
},
"processor": "RP2040",
"rgblight": {
"animations": {
"alternating": true,
"breathing": true,
"christmas": true,
"knight": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"rgb_test": true,
"snake": true,
"static_gradient": true,
"twinkle": true
},
"led_count": 8,
"max_brightness": 175,
"sleep": true
},
"usb": {
"device_version": "2.0.0",
"pid": "0x6662"
},
"ws2812": {
"driver": "vendor",
"pin": "GP28"
},
"layouts": {
"LAYOUT_625u_split_enter_split_lshift": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "w": 1.5},
{"matrix": [0, 1], "x": 1.5, "y": 0},
{"matrix": [0, 2], "x": 2.5, "y": 0},
{"matrix": [0, 3], "x": 3.5, "y": 0},
{"matrix": [0, 4], "x": 4.5, "y": 0},
{"matrix": [0, 5], "x": 5.5, "y": 0},
{"matrix": [0, 6], "x": 6.5, "y": 0},
{"matrix": [0, 7], "x": 7.5, "y": 0},
{"matrix": [0, 8], "x": 8.5, "y": 0},
{"matrix": [0, 9], "x": 9.5, "y": 0},
{"matrix": [0, 10], "x": 10.5, "y": 0},
{"matrix": [0, 11], "x": 11.5, "y": 0},
{"matrix": [0, 12], "x": 12.5, "y": 0},
{"matrix": [0, 13], "x": 13.5, "y": 0, "w": 1.5},
{"matrix": [0, 14], "x": 15.5, "y": 0},
{"matrix": [0, 15], "x": 16.5, "y": 0, "encoder": 0},
{"matrix": [1, 0], "x": 0, "y": 1, "w": 1.75},
{"matrix": [1, 1], "x": 1.75, "y": 1},
{"matrix": [1, 2], "x": 2.75, "y": 1},
{"matrix": [1, 3], "x": 3.75, "y": 1},
{"matrix": [1, 4], "x": 4.75, "y": 1},
{"matrix": [1, 5], "x": 5.75, "y": 1},
{"matrix": [1, 6], "x": 6.75, "y": 1},
{"matrix": [1, 7], "x": 7.75, "y": 1},
{"matrix": [1, 8], "x": 8.75, "y": 1},
{"matrix": [1, 9], "x": 9.75, "y": 1},
{"matrix": [1, 10], "x": 10.75, "y": 1},
{"matrix": [1, 11], "x": 11.75, "y": 1},
{"matrix": [1, 12], "x": 12.75, "y": 1},
{"matrix": [1, 13], "x": 13.75, "y": 1, "w": 1.25},
{"matrix": [2, 0], "x": 0, "y": 2, "w": 1.25},
{"matrix": [2, 1], "x": 1.25, "y": 2},
{"matrix": [2, 2], "x": 2.25, "y": 2},
{"matrix": [2, 3], "x": 3.25, "y": 2},
{"matrix": [2, 4], "x": 4.25, "y": 2},
{"matrix": [2, 5], "x": 5.25, "y": 2},
{"matrix": [2, 6], "x": 6.25, "y": 2},
{"matrix": [2, 7], "x": 7.25, "y": 2},
{"matrix": [2, 8], "x": 8.25, "y": 2},
{"matrix": [2, 9], "x": 9.25, "y": 2},
{"matrix": [2, 10], "x": 10.25, "y": 2},
{"matrix": [2, 11], "x": 11.25, "y": 2},
{"matrix": [2, 12], "x": 12.25, "y": 2, "w": 2.25},
{"matrix": [2, 14], "x": 15.5, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
{"matrix": [3, 1], "x": 1.25, "y": 3, "w": 1.25},
{"matrix": [3, 2], "x": 2.5, "y": 3, "w": 1.25},
{"matrix": [3, 7], "x": 3.75, "y": 3, "w": 6.25},
{"matrix": [3, 10], "x": 10, "y": 3, "w": 1.25},
{"matrix": [3, 11], "x": 11.25, "y": 3, "w": 1.25},
{"matrix": [3, 12], "x": 12.5, "y": 3, "w": 1.25},
{"matrix": [3, 13], "x": 14.5, "y": 3},
{"matrix": [3, 14], "x": 15.5, "y": 3},
{"matrix": [3, 15], "x": 16.5, "y": 3}
]
},
"LAYOUT_625u_split_enter_split_lshift_split_rshift": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "w": 1.5},
{"matrix": [0, 1], "x": 1.5, "y": 0},
{"matrix": [0, 2], "x": 2.5, "y": 0},
{"matrix": [0, 3], "x": 3.5, "y": 0},
{"matrix": [0, 4], "x": 4.5, "y": 0},
{"matrix": [0, 5], "x": 5.5, "y": 0},
{"matrix": [0, 6], "x": 6.5, "y": 0},
{"matrix": [0, 7], "x": 7.5, "y": 0},
{"matrix": [0, 8], "x": 8.5, "y": 0},
{"matrix": [0, 9], "x": 9.5, "y": 0},
{"matrix": [0, 10], "x": 10.5, "y": 0},
{"matrix": [0, 11], "x": 11.5, "y": 0},
{"matrix": [0, 12], "x": 12.5, "y": 0},
{"matrix": [0, 13], "x": 13.5, "y": 0, "w": 1.5},
{"matrix": [0, 14], "x": 15.5, "y": 0},
{"matrix": [0, 15], "x": 16.5, "y": 0, "encoder": 0},
{"matrix": [1, 0], "x": 0, "y": 1, "w": 1.75},
{"matrix": [1, 1], "x": 1.75, "y": 1},
{"matrix": [1, 2], "x": 2.75, "y": 1},
{"matrix": [1, 3], "x": 3.75, "y": 1},
{"matrix": [1, 4], "x": 4.75, "y": 1},
{"matrix": [1, 5], "x": 5.75, "y": 1},
{"matrix": [1, 6], "x": 6.75, "y": 1},
{"matrix": [1, 7], "x": 7.75, "y": 1},
{"matrix": [1, 8], "x": 8.75, "y": 1},
{"matrix": [1, 9], "x": 9.75, "y": 1},
{"matrix": [1, 10], "x": 10.75, "y": 1},
{"matrix": [1, 11], "x": 11.75, "y": 1},
{"matrix": [1, 12], "x": 12.75, "y": 1},
{"matrix": [1, 13], "x": 13.75, "y": 1, "w": 1.25},
{"matrix": [2, 0], "x": 0, "y": 2, "w": 1.25},
{"matrix": [2, 1], "x": 1.25, "y": 2},
{"matrix": [2, 2], "x": 2.25, "y": 2},
{"matrix": [2, 3], "x": 3.25, "y": 2},
{"matrix": [2, 4], "x": 4.25, "y": 2},
{"matrix": [2, 5], "x": 5.25, "y": 2},
{"matrix": [2, 6], "x": 6.25, "y": 2},
{"matrix": [2, 7], "x": 7.25, "y": 2},
{"matrix": [2, 8], "x": 8.25, "y": 2},
{"matrix": [2, 9], "x": 9.25, "y": 2},
{"matrix": [2, 10], "x": 10.25, "y": 2},
{"matrix": [2, 11], "x": 11.25, "y": 2},
{"matrix": [2, 12], "x": 12.25, "y": 2, "w": 1.25},
{"matrix": [2, 13], "x": 13.5, "y": 2},
{"matrix": [2, 14], "x": 15.5, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
{"matrix": [3, 1], "x": 1.25, "y": 3, "w": 1.25},
{"matrix": [3, 2], "x": 2.5, "y": 3, "w": 1.25},
{"matrix": [3, 7], "x": 3.75, "y": 3, "w": 6.25},
{"matrix": [3, 10], "x": 10, "y": 3, "w": 1.25},
{"matrix": [3, 11], "x": 11.25, "y": 3, "w": 1.25},
{"matrix": [3, 12], "x": 12.5, "y": 3, "w": 1.25},
{"matrix": [3, 13], "x": 14.5, "y": 3},
{"matrix": [3, 14], "x": 15.5, "y": 3},
{"matrix": [3, 15], "x": 16.5, "y": 3}
]
},
"LAYOUT_all": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "w": 1.5},
{"matrix": [0, 1], "x": 1.5, "y": 0},
{"matrix": [0, 2], "x": 2.5, "y": 0},
{"matrix": [0, 3], "x": 3.5, "y": 0},
{"matrix": [0, 4], "x": 4.5, "y": 0},
{"matrix": [0, 5], "x": 5.5, "y": 0},
{"matrix": [0, 6], "x": 6.5, "y": 0},
{"matrix": [0, 7], "x": 7.5, "y": 0},
{"matrix": [0, 8], "x": 8.5, "y": 0},
{"matrix": [0, 9], "x": 9.5, "y": 0},
{"matrix": [0, 10], "x": 10.5, "y": 0},
{"matrix": [0, 11], "x": 11.5, "y": 0},
{"matrix": [0, 12], "x": 12.5, "y": 0},
{"matrix": [0, 13], "x": 13.5, "y": 0, "w": 1.5},
{"matrix": [0, 14], "x": 15.5, "y": 0},
{"matrix": [0, 15], "x": 16.5, "y": 0, "encoder": 0},
{"matrix": [1, 0], "x": 0, "y": 1, "w": 1.75},
{"matrix": [1, 1], "x": 1.75, "y": 1},
{"matrix": [1, 2], "x": 2.75, "y": 1},
{"matrix": [1, 3], "x": 3.75, "y": 1},
{"matrix": [1, 4], "x": 4.75, "y": 1},
{"matrix": [1, 5], "x": 5.75, "y": 1},
{"matrix": [1, 6], "x": 6.75, "y": 1},
{"matrix": [1, 7], "x": 7.75, "y": 1},
{"matrix": [1, 8], "x": 8.75, "y": 1},
{"matrix": [1, 9], "x": 9.75, "y": 1},
{"matrix": [1, 10], "x": 10.75, "y": 1},
{"matrix": [1, 11], "x": 11.75, "y": 1},
{"matrix": [1, 12], "x": 12.75, "y": 1},
{"matrix": [1, 13], "x": 13.75, "y": 1, "w": 1.25},
{"matrix": [2, 0], "x": 0, "y": 2, "w": 1.25},
{"matrix": [2, 1], "x": 1.25, "y": 2},
{"matrix": [2, 2], "x": 2.25, "y": 2},
{"matrix": [2, 3], "x": 3.25, "y": 2},
{"matrix": [2, 4], "x": 4.25, "y": 2},
{"matrix": [2, 5], "x": 5.25, "y": 2},
{"matrix": [2, 6], "x": 6.25, "y": 2},
{"matrix": [2, 7], "x": 7.25, "y": 2},
{"matrix": [2, 8], "x": 8.25, "y": 2},
{"matrix": [2, 9], "x": 9.25, "y": 2},
{"matrix": [2, 10], "x": 10.25, "y": 2},
{"matrix": [2, 11], "x": 11.25, "y": 2},
{"matrix": [2, 12], "x": 12.25, "y": 2, "w": 1.25},
{"matrix": [2, 13], "x": 13.5, "y": 2},
{"matrix": [2, 14], "x": 15.5, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
{"matrix": [3, 1], "x": 1.25, "y": 3, "w": 1.25},
{"matrix": [3, 2], "x": 2.5, "y": 3, "w": 1.25},
{"matrix": [3, 4], "x": 3.75, "y": 3, "w": 2.75},
{"matrix": [3, 7], "x": 6.5, "y": 3, "w": 2.25},
{"matrix": [3, 9], "x": 8.75, "y": 3, "w": 1.25},
{"matrix": [3, 10], "x": 10, "y": 3, "w": 1.25},
{"matrix": [3, 11], "x": 11.25, "y": 3, "w": 1.25},
{"matrix": [3, 12], "x": 12.5, "y": 3, "w": 1.25},
{"matrix": [3, 13], "x": 14.5, "y": 3},
{"matrix": [3, 14], "x": 15.5, "y": 3},
{"matrix": [3, 15], "x": 16.5, "y": 3}
]
},
"LAYOUT_split_space_split_enter_split_lshift": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "w": 1.5},
{"matrix": [0, 1], "x": 1.5, "y": 0},
{"matrix": [0, 2], "x": 2.5, "y": 0},
{"matrix": [0, 3], "x": 3.5, "y": 0},
{"matrix": [0, 4], "x": 4.5, "y": 0},
{"matrix": [0, 5], "x": 5.5, "y": 0},
{"matrix": [0, 6], "x": 6.5, "y": 0},
{"matrix": [0, 7], "x": 7.5, "y": 0},
{"matrix": [0, 8], "x": 8.5, "y": 0},
{"matrix": [0, 9], "x": 9.5, "y": 0},
{"matrix": [0, 10], "x": 10.5, "y": 0},
{"matrix": [0, 11], "x": 11.5, "y": 0},
{"matrix": [0, 12], "x": 12.5, "y": 0},
{"matrix": [0, 13], "x": 13.5, "y": 0, "w": 1.5},
{"matrix": [0, 14], "x": 15.5, "y": 0},
{"matrix": [0, 15], "x": 16.5, "y": 0, "encoder": 0},
{"matrix": [1, 0], "x": 0, "y": 1, "w": 1.75},
{"matrix": [1, 1], "x": 1.75, "y": 1},
{"matrix": [1, 2], "x": 2.75, "y": 1},
{"matrix": [1, 3], "x": 3.75, "y": 1},
{"matrix": [1, 4], "x": 4.75, "y": 1},
{"matrix": [1, 5], "x": 5.75, "y": 1},
{"matrix": [1, 6], "x": 6.75, "y": 1},
{"matrix": [1, 7], "x": 7.75, "y": 1},
{"matrix": [1, 8], "x": 8.75, "y": 1},
{"matrix": [1, 9], "x": 9.75, "y": 1},
{"matrix": [1, 10], "x": 10.75, "y": 1},
{"matrix": [1, 11], "x": 11.75, "y": 1},
{"matrix": [1, 12], "x": 12.75, "y": 1},
{"matrix": [1, 13], "x": 13.75, "y": 1, "w": 1.25},
{"matrix": [2, 0], "x": 0, "y": 2, "w": 1.25},
{"matrix": [2, 1], "x": 1.25, "y": 2},
{"matrix": [2, 2], "x": 2.25, "y": 2},
{"matrix": [2, 3], "x": 3.25, "y": 2},
{"matrix": [2, 4], "x": 4.25, "y": 2},
{"matrix": [2, 5], "x": 5.25, "y": 2},
{"matrix": [2, 6], "x": 6.25, "y": 2},
{"matrix": [2, 7], "x": 7.25, "y": 2},
{"matrix": [2, 8], "x": 8.25, "y": 2},
{"matrix": [2, 9], "x": 9.25, "y": 2},
{"matrix": [2, 10], "x": 10.25, "y": 2},
{"matrix": [2, 11], "x": 11.25, "y": 2},
{"matrix": [2, 12], "x": 12.25, "y": 2, "w": 2.25},
{"matrix": [2, 14], "x": 15.5, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
{"matrix": [3, 1], "x": 1.25, "y": 3, "w": 1.25},
{"matrix": [3, 2], "x": 2.5, "y": 3, "w": 1.25},
{"matrix": [3, 4], "x": 3.75, "y": 3, "w": 2.75},
{"matrix": [3, 7], "x": 6.5, "y": 3, "w": 2.25},
{"matrix": [3, 9], "x": 8.75, "y": 3, "w": 1.25},
{"matrix": [3, 10], "x": 10, "y": 3, "w": 1.25},
{"matrix": [3, 11], "x": 11.25, "y": 3, "w": 1.25},
{"matrix": [3, 12], "x": 12.5, "y": 3, "w": 1.25},
{"matrix": [3, 13], "x": 14.5, "y": 3},
{"matrix": [3, 14], "x": 15.5, "y": 3},
{"matrix": [3, 15], "x": 16.5, "y": 3}
]
}
}
}

View File

@ -0,0 +1,33 @@
{
"keyboard": "fruitykeeb/fruitbar/r2",
"keymap": "default",
"version": 1,
"layout": "LAYOUT_all",
"layers": [
[
"KC_ESC", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "KC_U", "KC_I", "KC_O", "KC_P", "KC_LBRC", "KC_RBRC", "KC_BSPC", "KC_HOME", "KC_END",
"KC_TAB", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_NUBS", "KC_ENT",
"KC_LSFT", "KC_NUHS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH", "KC_RSFT", "MO(1)", "KC_UP",
"KC_LCTL", "KC_LGUI", "KC_LALT", "KC_SPC", "KC_SPC", "KC_SPC", "KC_RALT", "MO(1)", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RIGHT"
],
[
"KC_GRV", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "KC_7", "KC_8", "KC_9", "KC_0", "KC_MINS", "KC_EQL", "KC_DEL", "KC_PGDN", "KC_PGUP",
"KC_CAPS", "KC_F1", "KC_F2", "KC_F3", "KC_F4", "KC_F5", "KC_F6", "KC_F7", "KC_F8", "KC_F9", "KC_F10", "KC_F11", "KC_TRNS", "KC_F12",
"KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS",
"QK_BOOT", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS"
]
],
"config": {
"features": {
"encoder_map": true
}
},
"encoders": [
[
{ "ccw": "KC_VOLD", "cw": "KC_VOLU" }
],
[
{ "ccw": "KC_TRNS", "cw": "KC_TRNS" }
]
]
}

View File

@ -1,3 +1,6 @@
// Copyright 2022 @ojthetiny
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>

View File

@ -0,0 +1 @@
# This file intentionally left blank

View File

@ -0,0 +1,32 @@
# Fruitbar
![Fruitbar](https://i.imgur.com/MlJudRrh.jpeg)
A budget-oriented 40% with base kit compatibility. Perfect for those who have always wanted to try a 40% but worried about the lack of punctuation and arrow keys.
* Keyboard Maintainer: [The QMK Community](https://github.com/qmk)
* Hardware Supported:
* Fruitbar PCB R2 (RP2040, rp2040)
* Hardware Availability:
* R1 Group Buy took place between 2021-10-01 and 2021-10-24 on [FruityKeeb](https://fruitykeeb.xyz/).
* R2 Group Buy took place between 2023-02-01 1400 UTC and 2023-03-04 0359 UTC on [P3DStore](https://p3dstore.com)(US), [42keebs.eu](https://42keebs.eu)(EU), [CustomKBD](https://customkbd.com)(AU).
Make example for this keyboard (after setting up your build environment):
make fruitykeeb/fruitbar/r2:default
Flashing example for this keyboard:
make fruitykeeb/fruitbar/r2:default:flash
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
Enter the bootloader in 3 ways:
* **Bootmagic reset**: Hold down the top left key and plug in the keyboard. This will also clear EEPROM/emulated EEPROM, so it is a good first step if the keyboard is misbehaving.
* **Physical reset**:
- R1: Short the RST and GND pins on the Pro Micro.
- R2: While holding down the `Boot` button, press the `Reset` button.
* **Keycode in layout**: Press the key mapped to `QK_BOOT`. In the default keymap it is on the second layer, replacing the Left Control key in the bottom left.