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

Add str_studio cadence_16 keyboard #24940

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

Conversation

str-studio
Copy link

Description

Add str_studio cadence_16 keyboard

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).


// ================== OLED ==================

#ifdef OLED_ENABLE
Copy link
Member

Choose a reason for hiding this comment

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

All this code should be moved to the keyboard level in a cadence_16.c file, since it looks like OLEDs are intended to be installed on this keyboard.

Copy link
Author

Choose a reason for hiding this comment

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

Hello @waffle87 thank you so much for taking the time to review this!

I attempted to implement your suggestion by moving the OLED code from the keymap file to cadence_16.c at the keyboard level. However, I encountered compilation errors during testing, could you please help me identify what I might have missed here?
I referenced other keyboards that use the default keymap structure, but I want to ensure I follow QMK conventions correctly. Any guidance or examples would be greatly appreciated!
image

Copy link
Member

Choose a reason for hiding this comment

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

if the candence_16.c doesn't have an #include "quantum.h" or #include QMK_KEYBOARD_H, it may be missing a bunch of these includes.

Comment on lines 34 to 49
{"matrix": [0, 3], "x": 3, "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": [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": [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, "h": 1.5},
{"matrix": [4, 0], "x": 0, "y": 4},
{"matrix": [4, 1], "x": 1, "y": 4},
{"matrix": [4, 2], "x": 2, "y": 4}
Copy link
Member

Choose a reason for hiding this comment

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

These coordinates do not appear to match this keyboard's physical layout:
image

Copy link
Author

Choose a reason for hiding this comment

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

Hi @waffle87, thank you for flagging this! I based the coordinate mapping on my physical PCB layout and verified the key positions during testing
km-mapping

However, I’d be happy to adjust this if there’s a mismatch with QMK’s expected standards. Could you please share more details about the discrepancy you observed? I want to ensure this aligns perfectly with both the hardware and firmware expectations.

Copy link
Member

Choose a reason for hiding this comment

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

The issue is the bottom right key's size. In your keyboard.json file, it is only 1.5u tall. Physically, it is 2u tall.

@str-studio str-studio requested a review from waffle87 February 26, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants