Add Artboard support (#1)
* Add Artboard support (#1) * Initial commit for the Artboard * adjust copyright and pins * fix pin for left * Add Artboard to builds (#2) * Initial commit for the Artboard * adjust copyright and pins * add artboard to builds * fix pins for right * fix pins for left again * probably mixed up the pins. switched things around. * fix build error. * remove whitespace * still tweaking pins * flipped some pins around * flip the rows * fixed a hardware issue, so reverting to what's working * more reverting * oops forgot to switch to analog pins * try to fix weird flipped rows * argh, flipped pins. flipped pins everywhere. * fix left artboard * Update artboard_left.conf * disable deep sleep for right artboard * add repo link
This commit is contained in:
parent
420a1460e4
commit
e63ac4d6db
10 changed files with 245 additions and 0 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -19,6 +19,10 @@ jobs:
|
|||
shield: the_paintbrush_left
|
||||
- board: nice_nano
|
||||
shield: the_paintbrush_right
|
||||
- board: nice_nano
|
||||
shield: artboard_left
|
||||
- board: nice_nano
|
||||
shield: artboard_right
|
||||
- board: nice_nano
|
||||
shield: corne_5_col_artsey_left
|
||||
- board: nice_nano
|
||||
|
|
34
config/boards/shields/artboard/Kconfig.defconfig
Normal file
34
config/boards/shields/artboard/Kconfig.defconfig
Normal file
|
@ -0,0 +1,34 @@
|
|||
if SHIELD_ARTBOARD_LEFT || SHIELD_ARTBOARD_RIGHT
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "Artboard"
|
||||
|
||||
config I2C
|
||||
default y
|
||||
|
||||
config SSD1306
|
||||
default y
|
||||
|
||||
config SSD1306_REVERSE_MODE
|
||||
default y
|
||||
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 128
|
||||
|
||||
config LVGL_VER_RES_MAX
|
||||
default 32
|
||||
|
||||
config LVGL_VDB_SIZE
|
||||
default 64
|
||||
|
||||
config LVGL_DPI
|
||||
default 148
|
||||
|
||||
config LVGL_BITS_PER_PIXEL
|
||||
default 1
|
||||
|
||||
choice LVGL_COLOR_DEPTH
|
||||
default LVGL_COLOR_DEPTH_1
|
||||
endchoice
|
||||
|
||||
endif
|
8
config/boards/shields/artboard/Kconfig.shield
Executable file
8
config/boards/shields/artboard/Kconfig.shield
Executable file
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2021 Dennis "depadiernos" Padiernos
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_ARTBOARD_LEFT
|
||||
def_bool $(shields_list_contains,artboard_left)
|
||||
|
||||
config SHIELD_ARTBOARD_RIGHT
|
||||
def_bool $(shields_list_contains,artboard_right)
|
3
config/boards/shields/artboard/README.md
Normal file
3
config/boards/shields/artboard/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Artboard
|
||||
|
||||
This directory contains the ARTSEY implementation for the `Artboard` hardware being developed by depadiernos. Repo: https://github.com/depadiernos/artboard
|
17
config/boards/shields/artboard/artboard_left.conf
Executable file
17
config/boards/shields/artboard/artboard_left.conf
Executable file
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2021 Dennis "depadiernos" Padiernos
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Tune combos to allow proper ARTSEY support
|
||||
CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=16
|
||||
CONFIG_ZMK_COMBO_MAX_KEYS_PER_COMBO=8
|
||||
CONFIG_ZMK_COMBO_MAX_PRESSED_COMBOS=8
|
||||
|
||||
# Enable display (layer in use is helpful)
|
||||
CONFIG_ZMK_DISPLAY=y
|
||||
|
||||
# Turn on deep sleep
|
||||
CONFIG_ZMK_SLEEP=n
|
||||
#CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
|
||||
|
||||
# Set screen blanking to 15s instead of 30s
|
||||
#CONFIG_ZMK_IDLE_TIMEOUT=15000
|
31
config/boards/shields/artboard/artboard_left.keymap
Normal file
31
config/boards/shields/artboard/artboard_left.keymap
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Dennis "depadiernos" Padiernos
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
// Left/Right
|
||||
#define ARTSEY_LEFT 1
|
||||
|
||||
// ARTS Row
|
||||
#define KEY_A 3
|
||||
#define KEY_R 2
|
||||
#define KEY_T 1
|
||||
#define KEY_S 0
|
||||
// EYIO Row
|
||||
#define KEY_E 7
|
||||
#define KEY_Y 6
|
||||
#define KEY_I 5
|
||||
#define KEY_O 4
|
||||
|
||||
// Define Offsets
|
||||
#define LEADING_NONES NONE(0,0,0)
|
||||
#define MIDDLE_NONES NONE(0, 0, 0)
|
||||
#define TRAILING_NONES NONE(0, 0, 0)
|
||||
|
||||
// Include main artsey.io keymap
|
||||
#include "../../../artsey.dtsi"
|
50
config/boards/shields/artboard/artboard_left.overlay
Normal file
50
config/boards/shields/artboard/artboard_left.overlay
Normal file
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Dennis "depadiernos" Padiernos
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/matrix_transform.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan0;
|
||||
};
|
||||
|
||||
kscan0: kscan_0 {
|
||||
compatible = "zmk,kscan-gpio-direct";
|
||||
|
||||
label = "KSCAN";
|
||||
|
||||
input-gpios
|
||||
= <&pro_micro_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_a 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_a 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
&pro_micro_i2c {
|
||||
status = "okay";
|
||||
|
||||
oled: ssd1306@3c {
|
||||
compatible = "solomon,ssd1306fb";
|
||||
reg = <0x3c>;
|
||||
label = "DISPLAY";
|
||||
width = <128>;
|
||||
height = <32>;
|
||||
segment-offset = <0>;
|
||||
page-offset = <0>;
|
||||
display-offset = <0>;
|
||||
multiplex-ratio = <31>;
|
||||
segment-remap;
|
||||
com-invdir;
|
||||
com-sequential;
|
||||
prechargep = <0x22>;
|
||||
};
|
||||
};
|
17
config/boards/shields/artboard/artboard_right.conf
Executable file
17
config/boards/shields/artboard/artboard_right.conf
Executable file
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2021 Dennis "depadiernos" Padiernos
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Tune combos to allow proper ARTSEY support
|
||||
CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=16
|
||||
CONFIG_ZMK_COMBO_MAX_KEYS_PER_COMBO=8
|
||||
CONFIG_ZMK_COMBO_MAX_PRESSED_COMBOS=8
|
||||
|
||||
# Enable display (layer in use is helpful)
|
||||
CONFIG_ZMK_DISPLAY=y
|
||||
|
||||
# Turn on deep sleep
|
||||
CONFIG_ZMK_SLEEP=n
|
||||
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
|
||||
|
||||
# Set screen blanking to 15s instead of 30s
|
||||
#CONFIG_ZMK_IDLE_TIMEOUT=15000
|
31
config/boards/shields/artboard/artboard_right.keymap
Normal file
31
config/boards/shields/artboard/artboard_right.keymap
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Dennis "depadiernos" Padiernos
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
// Left/Right
|
||||
#define ARTSEY_RIGHT 1
|
||||
|
||||
// ARTS Row
|
||||
#define KEY_A 0
|
||||
#define KEY_R 1
|
||||
#define KEY_T 2
|
||||
#define KEY_S 3
|
||||
// EYIO Row
|
||||
#define KEY_E 4
|
||||
#define KEY_Y 5
|
||||
#define KEY_I 6
|
||||
#define KEY_O 7
|
||||
|
||||
// Define Offsets
|
||||
#define LEADING_NONES NONE(0,0,0)
|
||||
#define MIDDLE_NONES NONE(0, 0, 0)
|
||||
#define TRAILING_NONES NONE(0, 0, 0)
|
||||
|
||||
// Include main artsey.io keymap
|
||||
#include "../../../artsey.dtsi"
|
50
config/boards/shields/artboard/artboard_right.overlay
Normal file
50
config/boards/shields/artboard/artboard_right.overlay
Normal file
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Dennis "depadiernos" Padiernos
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/matrix_transform.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan0;
|
||||
};
|
||||
|
||||
kscan0: kscan_0 {
|
||||
compatible = "zmk,kscan-gpio-direct";
|
||||
|
||||
label = "KSCAN";
|
||||
|
||||
input-gpios
|
||||
= <&pro_micro_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_a 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_a 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro_d 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
&pro_micro_i2c {
|
||||
status = "okay";
|
||||
|
||||
oled: ssd1306@3c {
|
||||
compatible = "solomon,ssd1306fb";
|
||||
reg = <0x3c>;
|
||||
label = "DISPLAY";
|
||||
width = <128>;
|
||||
height = <32>;
|
||||
segment-offset = <0>;
|
||||
page-offset = <0>;
|
||||
display-offset = <0>;
|
||||
multiplex-ratio = <31>;
|
||||
segment-remap;
|
||||
com-invdir;
|
||||
com-sequential;
|
||||
prechargep = <0x22>;
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue