Browse Source

[Keyboard] Add Coffee Break Keyboards Acai (#25796)

* Add support for Coffee Break Keyboards Acai

* Apply suggestions from code review

Co-authored-by: Jack Sangdahl <jack@pngu.org>

* Ran qmk format-json

* Misssed one of @waffle87's suggestions

* Misssed another of @waffle87's suggestions

* Try hosting on imgur.com

* Remove empty layers, add boot to layer 2

* Enhance the default keymap

* Use correct keycodes for RGB

---------

Co-authored-by: Jack Sangdahl <jack@pngu.org>
andrew morton 8 months ago
parent
commit
0fde9c9cac

+ 174 - 0
keyboards/cbkbd/acai/keyboard.json

@@ -0,0 +1,174 @@
+{
+    "manufacturer": "CoffeeBreakKeyboards",
+    "keyboard_name": "Acai",
+    "maintainer": "CoffeeBreakKeyboards",
+    "bootloader": "rp2040",
+    "diode_direction": "COL2ROW",
+    "dynamic_keymap": {
+        "layer_count": 6
+    },
+    "features": {
+        "bootmagic": true,
+        "extrakey": true,
+        "mousekey": true,
+        "nkro": true,
+        "rgb_matrix": true
+    },
+    "matrix_pins": {
+        "cols": ["GP25", "GP24", "GP23", "GP20", "GP18", "GP7", "GP6", "GP5", "GP4", "GP3"],
+        "rows": ["GP27", "GP28", "GP19", "GP26"]
+    },
+    "processor": "RP2040",
+    "rgb_matrix": {
+        "animations": {
+            "alphas_mods": true,
+            "band_pinwheel_sat": true,
+            "band_pinwheel_val": true,
+            "band_sat": true,
+            "band_spiral_sat": true,
+            "band_spiral_val": true,
+            "band_val": true,
+            "breathing": true,
+            "cycle_all": true,
+            "cycle_left_right": true,
+            "cycle_out_in": true,
+            "cycle_out_in_dual": true,
+            "cycle_pinwheel": true,
+            "cycle_spiral": true,
+            "cycle_up_down": true,
+            "digital_rain": true,
+            "dual_beacon": true,
+            "flower_blooming": true,
+            "gradient_left_right": true,
+            "gradient_up_down": true,
+            "hue_breathing": true,
+            "hue_pendulum": true,
+            "hue_wave": true,
+            "jellybean_raindrops": true,
+            "multisplash": true,
+            "pixel_flow": true,
+            "pixel_fractal": true,
+            "pixel_rain": true,
+            "rainbow_beacon": true,
+            "rainbow_moving_chevron": true,
+            "rainbow_pinwheels": true,
+            "raindrops": true,
+            "riverflow": true,
+            "solid_multisplash": true,
+            "solid_reactive": true,
+            "solid_reactive_cross": true,
+            "solid_reactive_multicross": true,
+            "solid_reactive_multinexus": true,
+            "solid_reactive_multiwide": true,
+            "solid_reactive_nexus": true,
+            "solid_reactive_simple": true,
+            "solid_reactive_wide": true,
+            "solid_splash": true,
+            "splash": true,
+            "starlight": true,
+            "starlight_dual_hue": true,
+            "starlight_dual_sat": true,
+            "typing_heatmap": true
+        },
+        "driver": "ws2812",
+        "layout": [
+            {"matrix": [0, 4], "x": 100, "y": 0, "flags": 4},
+            {"matrix": [0, 3], "x": 75, "y": 0, "flags": 4},
+            {"matrix": [0, 2], "x": 50, "y": 0, "flags": 4},
+            {"matrix": [0, 1], "x": 25, "y": 0, "flags": 4},
+            {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
+            {"matrix": [1, 0], "x": 0, "y": 21, "flags": 4},
+            {"matrix": [1, 1], "x": 25, "y": 21, "flags": 4},
+            {"matrix": [1, 2], "x": 50, "y": 21, "flags": 4},
+            {"matrix": [1, 3], "x": 75, "y": 21, "flags": 4},
+            {"matrix": [1, 4], "x": 100, "y": 21, "flags": 4},
+            {"matrix": [2, 4], "x": 100, "y": 43, "flags": 4},
+            {"matrix": [2, 3], "x": 75, "y": 43, "flags": 4},
+            {"matrix": [2, 2], "x": 50, "y": 43, "flags": 4},
+            {"matrix": [2, 1], "x": 25, "y": 43, "flags": 4},
+            {"matrix": [2, 0], "x": 0, "y": 43, "flags": 4},
+            {"matrix": [3, 0], "x": 0, "y": 64, "flags": 4},
+            {"matrix": [3, 1], "x": 25, "y": 64, "flags": 4},
+            {"matrix": [3, 2], "x": 50, "y": 64, "flags": 4},
+            {"matrix": [3, 3], "x": 75, "y": 64, "flags": 4},
+            {"matrix": [3, 4], "x": 100, "y": 64, "flags": 4},
+            {"matrix": [3, 5], "x": 125, "y": 64, "flags": 4},
+            {"matrix": [3, 6], "x": 150, "y": 64, "flags": 4},
+            {"matrix": [3, 7], "x": 175, "y": 64, "flags": 4},
+            {"matrix": [3, 8], "x": 200, "y": 64, "flags": 4},
+            {"matrix": [3, 9], "x": 224, "y": 64, "flags": 4},
+            {"matrix": [2, 9], "x": 224, "y": 43, "flags": 4},
+            {"matrix": [2, 8], "x": 200, "y": 43, "flags": 4},
+            {"matrix": [2, 7], "x": 175, "y": 43, "flags": 4},
+            {"matrix": [2, 6], "x": 150, "y": 43, "flags": 4},
+            {"matrix": [2, 5], "x": 125, "y": 43, "flags": 4},
+            {"matrix": [1, 5], "x": 125, "y": 21, "flags": 4},
+            {"matrix": [1, 6], "x": 150, "y": 21, "flags": 4},
+            {"matrix": [1, 7], "x": 175, "y": 21, "flags": 4},
+            {"matrix": [1, 8], "x": 200, "y": 21, "flags": 4},
+            {"matrix": [1, 9], "x": 224, "y": 21, "flags": 4},
+            {"matrix": [0, 9], "x": 224, "y": 0, "flags": 4},
+            {"matrix": [0, 8], "x": 200, "y": 0, "flags": 4},
+            {"matrix": [0, 7], "x": 175, "y": 0, "flags": 4},
+            {"matrix": [0, 6], "x": 150, "y": 0, "flags": 4},
+            {"matrix": [0, 5], "x": 125, "y": 0, "flags": 4}
+        ],
+        "max_brightness": 125,
+        "sleep": true
+    },
+    "usb": {
+        "device_version": "0.0.1",
+        "pid": "0x1075",
+        "vid": "0x4342"
+    },
+    "ws2812": {
+        "driver": "vendor",
+        "pin": "GP29"
+    },
+    "layouts": {
+        "LAYOUT": {
+            "layout": [
+                {"matrix": [0, 0], "x": 0, "y": 0},
+                {"matrix": [0, 1], "x": 1, "y": 0},
+                {"matrix": [0, 2], "x": 2, "y": 0},
+                {"matrix": [0, 3], "x": 3, "y": 0},
+                {"matrix": [0, 4], "x": 4, "y": 0},
+                {"matrix": [0, 5], "x": 5, "y": 0},
+                {"matrix": [0, 6], "x": 6, "y": 0},
+                {"matrix": [0, 7], "x": 7, "y": 0},
+                {"matrix": [0, 8], "x": 8, "y": 0},
+                {"matrix": [0, 9], "x": 9, "y": 0},
+                {"matrix": [1, 0], "x": 0, "y": 1},
+                {"matrix": [1, 1], "x": 1, "y": 1},
+                {"matrix": [1, 2], "x": 2, "y": 1},
+                {"matrix": [1, 3], "x": 3, "y": 1},
+                {"matrix": [1, 4], "x": 4, "y": 1},
+                {"matrix": [1, 5], "x": 5, "y": 1},
+                {"matrix": [1, 6], "x": 6, "y": 1},
+                {"matrix": [1, 7], "x": 7, "y": 1},
+                {"matrix": [1, 8], "x": 8, "y": 1},
+                {"matrix": [1, 9], "x": 9, "y": 1},
+                {"matrix": [2, 0], "x": 0, "y": 2},
+                {"matrix": [2, 1], "x": 1, "y": 2},
+                {"matrix": [2, 2], "x": 2, "y": 2},
+                {"matrix": [2, 3], "x": 3, "y": 2},
+                {"matrix": [2, 4], "x": 4, "y": 2},
+                {"matrix": [2, 5], "x": 5, "y": 2},
+                {"matrix": [2, 6], "x": 6, "y": 2},
+                {"matrix": [2, 7], "x": 7, "y": 2},
+                {"matrix": [2, 8], "x": 8, "y": 2},
+                {"matrix": [2, 9], "x": 9, "y": 2},
+                {"matrix": [3, 0], "x": 0, "y": 3},
+                {"matrix": [3, 1], "x": 1, "y": 3},
+                {"matrix": [3, 2], "x": 2, "y": 3},
+                {"matrix": [3, 3], "x": 3, "y": 3},
+                {"matrix": [3, 4], "x": 4, "y": 3},
+                {"matrix": [3, 5], "x": 5, "y": 3},
+                {"matrix": [3, 6], "x": 6, "y": 3},
+                {"matrix": [3, 7], "x": 7, "y": 3},
+                {"matrix": [3, 8], "x": 8, "y": 3},
+                {"matrix": [3, 9], "x": 9, "y": 3}
+            ]
+        }
+    }
+}

+ 29 - 0
keyboards/cbkbd/acai/keymaps/default/keymap.c

@@ -0,0 +1,29 @@
+// Copyright 2025 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+    [0] = LAYOUT(
+        KC_Q,         KC_W,    KC_E,    KC_R,          KC_T,   KC_Y,   KC_U,           KC_I,    KC_O,    KC_P,
+        KC_A,         KC_S,    KC_D,    KC_F,          KC_G,   KC_H,   KC_J,           KC_K,    KC_L,    KC_ENTER,
+        LSFT_T(KC_Z), KC_X,    KC_C,    KC_V,          KC_B,   KC_N,   KC_M,           KC_COMM, KC_DOT,  RSFT_T(KC_SLSH),
+        KC_LCTL,      KC_LGUI, KC_LALT, LT(1,KC_BSPC), KC_DEL, KC_ENT, LT(2,KC_SPACE), KC_RALT, KC_RGUI, KC_RCTL
+    ),
+
+    [1] = LAYOUT(
+        KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_6,    KC_7,    KC_8,    KC_9,    KC_0,
+        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, 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
+    ),
+
+    [2] = LAYOUT(
+        RM_TOGG, RM_NEXT, 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_LEFT, KC_DOWN, KC_UP,   KC_RGHT, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+    ),
+
+};

+ 26 - 0
keyboards/cbkbd/acai/readme.md

@@ -0,0 +1,26 @@
+# Acai
+
+![Acai](https://imgur.com/eWKoH96.png)
+
+A 10x4 ortholinear keyboard made and sold by Coffee Break Keyboards. PCB designed by Snipeye. Case designed by Rain and Obabo. [More info on cbkbd.com](https://www.cbkbd.com/product/acai)
+
+* Hardware Supported: Acai PCB
+* Hardware Availability: [cbkbd.com](https://www.cbkbd.com/product/acai-pcb)
+
+Make example for this keyboard (after setting up your build environment):
+
+    make cbkbd/acai:default
+
+Flashing example for this keyboard:
+
+    make cbkbd/acai:default:flash
+
+See the [build environment setup](getting_started_build_tools) and the [make instructions](getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](newbs).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available