-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better config, display oled/view, animations bongo cat etc., rgb full…
…, puchi-ble/nicenano_v2, combos, macros, reset/bootloader, ... etc.
- Loading branch information
1 parent
8991647
commit e7c9c5a
Showing
21 changed files
with
1,994 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Makefile | ||
build/justin/* | ||
|
||
# MacOS | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
# ======================================== | ||
# FileName: build.yaml | ||
# Date: 07.06.2023 | ||
# Author: Marcos Chow Castro | ||
# Email: [email protected] | ||
# GitHub: https://github.com/mctechnology17 | ||
# Brief: configuration file for ZMK firmware | ||
# Board: nice_nano_v2 and puchi_ble_v1 | ||
# shield: corne_left nice_view_adapter nice_view, | ||
# corne_right nice_view_adapter nice_view, | ||
# corne_left, corne_right and settings_reset | ||
# ========================================= | ||
# ╔═╦═╦═╗ | ||
# ╔════╗ ║║║║║╔╝ | ||
# ║╔╗╔╗║ ║║║║║╚╗ | ||
# ╚╝║║╚╝ ║╠═╩╩═╝ | ||
# ║╠═╦═╣╚╦═╦╦═╦╗╔═╦═╦╦╗ | ||
# ║║╩╣═╣║║║║║╬║╚╣╬║╬║║║ | ||
# ╚╩═╩═╩╩╩╩═╩═╩═╩═╬╗╠╗║ | ||
# ╚═╩═╝ | ||
# This file generates the GitHub Actions matrix | ||
# For simple board + shield combinations, add them | ||
# to the top level board and shield arrays, for more | ||
|
@@ -11,14 +31,33 @@ | |
# - board: nice_nano_v2 | ||
# shield: reviung41 | ||
# | ||
# Split Keyboard Halves Unable to Pair | ||
# https://zmk.dev/docs/troubleshooting | ||
# - board: nice_nano_v2 | ||
# shield: settings_reset | ||
# Reset Split Keyboard Procedure | ||
# Perform the following steps to reset both halves of your split keyboard: | ||
# - Put each half of the split keyboard into bootloader mode. | ||
# - Flash one of the halves of the split with the downloaded settings reset UF2 | ||
# image. Immediately after flashing the chosen half, put it into bootloader | ||
# mode to avoid accidental bonding between the halves. | ||
# - Repeat step 2 with the other half of the split keyboard. | ||
# - Flash the actual image for each half of the split keyboard (e.g | ||
# my_board_left.uf2 to the left half, my_board_right.uf2 to the right half). | ||
# | ||
# After completing these steps, pair the halves of the split keyboard | ||
# together by resetting them at the same time. Most commonly, this is done by | ||
# grounding the reset pins for each of your keyboard's microcontrollers or | ||
# pressing the reset buttons at the same time. | ||
--- | ||
include: | ||
# - board: nice_nano_v2 | ||
# shield: corne_left | ||
# - board: nice_nano_v2 | ||
# shield: corne_right | ||
# TEST | ||
- board: nice_nano_v2 | ||
shield: corne_left nice_view_adapter nice_view | ||
- board: nice_nano_v2 | ||
shield: corne_right nice_view_adapter nice_view | ||
- board: nice_nano_v2 # puchi_ble_v1 nice_nano_v2 | ||
shield: corne_left nice_view_adapter nice_view # con display | ||
# shield: corne_left # con OLED display | ||
# - board: puchi_ble_v1 # puchi_ble_v1 nice_nano_v2 | ||
- board: nice_nano_v2 # puchi_ble_v1 nice_nano_v2 | ||
shield: corne_right nice_view_adapter nice_view # con display | ||
# shield: corne_right # con OLED display | ||
# - board: puchi_ble_v1 # puchi_ble_v1 nice_nano_v2 | ||
# - board: puchi_ble_v1 | ||
# shield: settings_reset |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include <dt-bindings/led/led.h> | ||
|
||
&pinctrl { | ||
spi1_default: spi1_default { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>; | ||
}; | ||
}; | ||
|
||
spi1_sleep: spi1_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&spi1 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
|
||
pinctrl-0 = <&spi1_default>; | ||
pinctrl-1 = <&spi1_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
|
||
led_strip: ws2812@0 { | ||
compatible = "worldsemi,ws2812-spi"; | ||
label = "WS2812"; | ||
|
||
/* SPI */ | ||
reg = <0>; /* ignored, but necessary for SPI bindings */ | ||
spi-max-frequency = <4000000>; | ||
|
||
/* WS2812 */ | ||
chain-length = <10>; /* arbitrary; change at will */ | ||
spi-one-frame = <0x70>; | ||
spi-zero-frame = <0x40>; | ||
|
||
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>; | ||
}; | ||
}; | ||
|
||
/ { | ||
chosen { | ||
zmk,underglow = &led_strip; | ||
}; | ||
}; |
Oops, something went wrong.