Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(boards): Add 1up sweet 16 macropad #1102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nicell
Copy link
Member

@Nicell Nicell commented Jan 28, 2022

Adding 1up sweet 16. Still needs to be tested on real hardware.

Board/Shield Check-list

  • This board/shield is tested working on real hardware
  • Definitions follow the general style of other shields/boards upstream (Reference)
  • .zmk.yml metadata file added
  • Proper Copyright + License headers added to applicable files (Generally, we stick to "The ZMK Contributors" for copyrights to help avoid churn when files get edited)
  • General consistent formatting of DeviceTree files
  • Keymaps do not use deprecated key defines (Check using the upgrader tool)
  • &pro_micro used in favor of &pro_micro_d/a if applicable
  • If split, no name added for the right/peripheral half
  • Kconfig.defconfig file correctly wraps all configuration in conditional on the shield symbol
  • .conf file has optional extra features commented out
  • Keyboard/PCB is part of a shipped group buy or is generally available in stock to purchase (OSH/personal projects without general availability should create a zmk-config repo instead)

@Nicell Nicell added enhancement New feature or request shields PRs and issues related to shields labels Jan 28, 2022
@Nicell Nicell marked this pull request as ready for review June 22, 2022 18:42
@Nicell Nicell requested a review from petejohanson June 22, 2022 18:43
Comment on lines +38 to +40
&none &none &none &none
&none &none &none &none
&none &none &trans &bt BT_CLR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
&none &none &none &none
&none &none &none &none
&none &none &trans &bt BT_CLR
&none &none &none &none
&none &none &none &none
&none &none &trans &bt BT_CLR

Formatting issues uncovered by pre-commit.

Comment on lines +1 to +7
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
mosi-pin = <45>;
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself.
sck-pin = <5>;
miso-pin = <7>;
Copy link
Contributor

@lesshonor lesshonor Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration to the pinctrl subsystem as part of the Zephyr 3.2 upgrade, and the &spi3 bus per #1746. (I'm sure you're familiar with rebasing et al...)

Suggested change
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
mosi-pin = <45>;
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself.
sck-pin = <5>;
miso-pin = <7>;
&pinctrl {
spi3_default: spi3_default {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 1, 13)>;
};
};
spi3_sleep: spi3_sleep {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 1, 13)>;
low-power-enable;
};
};
};
&spi3 {
compatible = "nordic,nrf-spim";
status = "okay";
pinctrl-0 = <&spi3_default>;
pinctrl-1 = <&spi3_sleep>;
pinctrl-names = "default", "sleep";


kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
Copy link
Contributor

@lesshonor lesshonor Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label = "KSCAN";
wakeup-source;

label is marked as deprecated for kscan nodes. wakeup-source is now required in order to allow keypresses to wake the keyboard from deep sleep.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot this:

  1. Please rename this file to nice_nano_v2.overlay, for consistency.
  2. After making the pinctrl and &spi3 changes, make a copy of it in the same folder named nice_nano.overlay so just in case someone builds one of these with a v1 nice!nano, it will behave the same way.

Comment on lines +7 to +8
#include <dt-bindings/zmk/matrix_transform.h>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#include <dt-bindings/zmk/matrix_transform.h>

This isn't actually being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request shields PRs and issues related to shields
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants