From c61cb72ae8ea3cf95ad4d00f88b2c5c3826c8342 Mon Sep 17 00:00:00 2001 From: Danny Date: Thu, 20 Jul 2023 08:10:09 -0400 Subject: Move files to rev1 folder, add rev2 (#21563) Co-authored-by: Duncan Sutherland --- keyboards/keebio/chocopad/rev1/info.json | 41 ++++++++++++++++++++++++++++++++ keyboards/keebio/chocopad/rev1/rev1.c | 21 ++++++++++++++++ keyboards/keebio/chocopad/rev1/rules.mk | 1 + 3 files changed, 63 insertions(+) create mode 100644 keyboards/keebio/chocopad/rev1/info.json create mode 100644 keyboards/keebio/chocopad/rev1/rev1.c create mode 100644 keyboards/keebio/chocopad/rev1/rules.mk (limited to 'keyboards/keebio/chocopad/rev1') diff --git a/keyboards/keebio/chocopad/rev1/info.json b/keyboards/keebio/chocopad/rev1/info.json new file mode 100644 index 0000000000..fafea9dce0 --- /dev/null +++ b/keyboards/keebio/chocopad/rev1/info.json @@ -0,0 +1,41 @@ +{ + "keyboard_name": "Chocopad Rev. 1", + "usb": { + "pid": "0x1144", + "device_version": "1.0.0" + }, + "development_board": "promicro", + "matrix_pins": { + "cols": ["D2", "D4", "F6", "F5"], + "rows": ["D7", "E6", "B3", "B2"] + }, + "diode_direction": "COL2ROW", + "features": { + "extrakey": true, + "mousekey": true, + "backlight": true, + "rgblight": true + }, + "backlight": { + "pin": "B5", + "levels": 6 + }, + "ws2812": { + "pin": "D3" + }, + "rgblight": { + "led_count": 4, + "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 + } + } +} diff --git a/keyboards/keebio/chocopad/rev1/rev1.c b/keyboards/keebio/chocopad/rev1/rev1.c new file mode 100644 index 0000000000..e362bb3483 --- /dev/null +++ b/keyboards/keebio/chocopad/rev1/rev1.c @@ -0,0 +1,21 @@ +// Copyright 2023 Danny Nguyen (danny@keeb.io) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "quantum.h" + +void eeconfig_init_kb(void) { +#ifdef BACKLIGHT_ENABLE + backlight_enable(); + backlight_level(5); +#endif +#ifdef RGBLIGHT_ENABLE + rgblight_enable(); // Enable RGB by default + rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness +#ifdef RGBLIGHT_MODE_EFFECT_SWIRL + rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default +#endif +#endif + + eeconfig_update_kb(0); + eeconfig_init_user(); +} diff --git a/keyboards/keebio/chocopad/rev1/rules.mk b/keyboards/keebio/chocopad/rev1/rules.mk new file mode 100644 index 0000000000..6e7633bfe0 --- /dev/null +++ b/keyboards/keebio/chocopad/rev1/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank -- cgit v1.2.3