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

[Keyboard] Added D48 keyboard. #8548

Merged
merged 26 commits into from
May 9, 2020
Merged

[Keyboard] Added D48 keyboard. #8548

merged 26 commits into from
May 9, 2020

Conversation

and3rson
Copy link
Contributor

@and3rson and3rson commented Mar 24, 2020

Description

Added D48 keyboard - Proton C based 48-key keyboard with OLED, 2 encoders, WS2812 strip, a buzzer & a real-time clock (DS1307). https://www.reddit.com/r/MechanicalKeyboards/comments/fns0kk/proton_c_40_keyboard_w_128x32_oled_2_rotary/?utm_source=share&utm_medium=web2x

Types of Changes

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

Checklist

  • My code follows the code style of this project.
  • 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).

@and3rson and3rson force-pushed the d48 branch 2 times, most recently from 21de0a4 to bee34b7 Compare March 24, 2020 16:17
Copy link
Member

@zvecr zvecr left a comment

Choose a reason for hiding this comment

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

Can you relocate the project to the keyboards/handwired folder please.

@and3rson
Copy link
Contributor Author

@zvecr Done!

@and3rson
Copy link
Contributor Author

and3rson commented Mar 25, 2020

I've just added a DS1307 RTC & updated my README. Hope someone will like this monstrosity!

Copy link
Member

@drashna drashna left a comment

Choose a reason for hiding this comment

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

Ideally, we'd prefer that keyboards and keymap/user code be separated out.

But more importantly, we need a default keymap for the keyboard.

keyboards/handwired/d48/glcdfont_d48.c Outdated Show resolved Hide resolved
keyboards/handwired/d48/keymaps/anderson/keymap.c Outdated Show resolved Hide resolved
users/anderson/ds1307.c Outdated Show resolved Hide resolved
users/anderson/dmc12.h Outdated Show resolved Hide resolved
users/anderson/ds1307.h Outdated Show resolved Hide resolved
users/anderson/seq.h Outdated Show resolved Hide resolved
users/anderson/smoothled.h Outdated Show resolved Hide resolved
Copy link
Member

@zvecr zvecr left a comment

Choose a reason for hiding this comment

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

The split of ds1307 between userspace and keyboard is kinda messy. Not that I imagine it will happen, but if a user were to add another keymap to this board, it wouldn't compile correctly without duplicating a bunch of your userspace files. My suggestion is to move users/anderson/ds1307.* to keyboards/handwired/d48/.

@zvecr zvecr added the keyboard label Mar 26, 2020
@and3rson
Copy link
Contributor Author

@drashna Thanks for the suggestions! I've applied your changes.
@zvecr I thing userspace feature now makes sense to me. I was using it as a place to put some common libraries. But my mistake was that those should actually be linked on a keymap level, not a keyboard level. I've applied the necessary fixes by moving ds1307.c to the keyboard dir (as it's a part of keyboard) and also moving lightmode stuff into keymap.

@drashna
Copy link
Member

drashna commented Mar 26, 2020

@zvecr I thing userspace feature now makes sense to me. I was using it as a place to put some common libraries. But my mistake was that those should actually be linked on a keymap level, not a keyboard level. I've applied the necessary fixes by moving ds1307.c to the keyboard dir (as it's a part of keyboard) and also moving lightmode stuff into keymap.

It is actually kind of that. But it's tied to the keymap name (usually). So it's not really "shared". If you wan to have a common library for the board, then in the keyboard's folder would be the best place for that.

@and3rson
Copy link
Contributor Author

Any other changes needed from my side?

keyboards/handwired/d48/README.md Outdated Show resolved Hide resolved
keyboards/handwired/d48/config.h Outdated Show resolved Hide resolved
keyboards/handwired/d48/keymaps/default/rules.mk Outdated Show resolved Hide resolved
@zvecr zvecr requested a review from fauxpark April 12, 2020 22:22
keyboards/handwired/d48/d48.h Outdated Show resolved Hide resolved
keyboards/handwired/d48/d48.h Outdated Show resolved Hide resolved
keyboards/handwired/d48/ds1307.h Outdated Show resolved Hide resolved
keyboards/handwired/d48/ds1307.c Show resolved Hide resolved
keyboards/handwired/d48/keymaps/anderson/rules.mk Outdated Show resolved Hide resolved
keyboards/handwired/d48/glcdfont_d48.c Outdated Show resolved Hide resolved
users/anderson/layout_defs.h Outdated Show resolved Hide resolved
keyboards/handwired/d48/keymaps/anderson/keymap.c Outdated Show resolved Hide resolved
keyboards/handwired/d48/rules.mk Outdated Show resolved Hide resolved
Copy link
Member

@noroadsleft noroadsleft left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@noroadsleft noroadsleft requested review from zvecr and fauxpark May 7, 2020 18:15
@drashna drashna merged commit 1f7bbf2 into qmk:master May 9, 2020
bitherder pushed a commit to bitherder/qmk_firmware that referenced this pull request May 15, 2020
* [Keyboard] Added D48 keyboard.

* Updated README.

* Cleanups.

* Moved d48 to handwired/

* Added link to build process album.

* Coding conventions cleanups.

* Added DS1307 RTC!

* Minor cleanups.

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Minor refactoring.

* Readme fix.

* Moved leftover keymap-specific code from keyboard space into keymap.

* Added encoder button pins to extra matrix row.

* Updated README, updated pinout & cleaned up the glcdfont

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Update config.h

* Apply suggestions from code review

Co-Authored-By: Ryan <[email protected]>

* Added default keymap. Refactored existing keymap.

* Update keyboards/handwired/d48/README.md

Co-Authored-By: Ryan <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Joel Challis <[email protected]>

* Minor alignment fix.

* Update keyboards/handwired/d48/glcdfont_d48.c

Co-Authored-By: Ryan <[email protected]>

* Changes as per PR.

* Apply suggestions from code review

Co-authored-by: James Young <[email protected]>

Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: James Young <[email protected]>
sowbug pushed a commit to sowbug/qmk_firmware that referenced this pull request May 24, 2020
* [Keyboard] Added D48 keyboard.

* Updated README.

* Cleanups.

* Moved d48 to handwired/

* Added link to build process album.

* Coding conventions cleanups.

* Added DS1307 RTC!

* Minor cleanups.

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Minor refactoring.

* Readme fix.

* Moved leftover keymap-specific code from keyboard space into keymap.

* Added encoder button pins to extra matrix row.

* Updated README, updated pinout & cleaned up the glcdfont

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Update config.h

* Apply suggestions from code review

Co-Authored-By: Ryan <[email protected]>

* Added default keymap. Refactored existing keymap.

* Update keyboards/handwired/d48/README.md

Co-Authored-By: Ryan <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Joel Challis <[email protected]>

* Minor alignment fix.

* Update keyboards/handwired/d48/glcdfont_d48.c

Co-Authored-By: Ryan <[email protected]>

* Changes as per PR.

* Apply suggestions from code review

Co-authored-by: James Young <[email protected]>

Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: James Young <[email protected]>
turky pushed a commit to turky/qmk_firmware that referenced this pull request Jun 13, 2020
* [Keyboard] Added D48 keyboard.

* Updated README.

* Cleanups.

* Moved d48 to handwired/

* Added link to build process album.

* Coding conventions cleanups.

* Added DS1307 RTC!

* Minor cleanups.

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Minor refactoring.

* Readme fix.

* Moved leftover keymap-specific code from keyboard space into keymap.

* Added encoder button pins to extra matrix row.

* Updated README, updated pinout & cleaned up the glcdfont

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Update config.h

* Apply suggestions from code review

Co-Authored-By: Ryan <[email protected]>

* Added default keymap. Refactored existing keymap.

* Update keyboards/handwired/d48/README.md

Co-Authored-By: Ryan <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Joel Challis <[email protected]>

* Minor alignment fix.

* Update keyboards/handwired/d48/glcdfont_d48.c

Co-Authored-By: Ryan <[email protected]>

* Changes as per PR.

* Apply suggestions from code review

Co-authored-by: James Young <[email protected]>

Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: James Young <[email protected]>
jakobaa pushed a commit to jakobaa/qmk_firmware that referenced this pull request Jul 7, 2020
* [Keyboard] Added D48 keyboard.

* Updated README.

* Cleanups.

* Moved d48 to handwired/

* Added link to build process album.

* Coding conventions cleanups.

* Added DS1307 RTC!

* Minor cleanups.

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Minor refactoring.

* Readme fix.

* Moved leftover keymap-specific code from keyboard space into keymap.

* Added encoder button pins to extra matrix row.

* Updated README, updated pinout & cleaned up the glcdfont

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Update config.h

* Apply suggestions from code review

Co-Authored-By: Ryan <[email protected]>

* Added default keymap. Refactored existing keymap.

* Update keyboards/handwired/d48/README.md

Co-Authored-By: Ryan <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Joel Challis <[email protected]>

* Minor alignment fix.

* Update keyboards/handwired/d48/glcdfont_d48.c

Co-Authored-By: Ryan <[email protected]>

* Changes as per PR.

* Apply suggestions from code review

Co-authored-by: James Young <[email protected]>

Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: James Young <[email protected]>
sjmacneil pushed a commit to sjmacneil/qmk_firmware that referenced this pull request Feb 19, 2021
* [Keyboard] Added D48 keyboard.

* Updated README.

* Cleanups.

* Moved d48 to handwired/

* Added link to build process album.

* Coding conventions cleanups.

* Added DS1307 RTC!

* Minor cleanups.

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Minor refactoring.

* Readme fix.

* Moved leftover keymap-specific code from keyboard space into keymap.

* Added encoder button pins to extra matrix row.

* Updated README, updated pinout & cleaned up the glcdfont

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Update config.h

* Apply suggestions from code review

Co-Authored-By: Ryan <[email protected]>

* Added default keymap. Refactored existing keymap.

* Update keyboards/handwired/d48/README.md

Co-Authored-By: Ryan <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Joel Challis <[email protected]>

* Minor alignment fix.

* Update keyboards/handwired/d48/glcdfont_d48.c

Co-Authored-By: Ryan <[email protected]>

* Changes as per PR.

* Apply suggestions from code review

Co-authored-by: James Young <[email protected]>

Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: James Young <[email protected]>
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
* [Keyboard] Added D48 keyboard.

* Updated README.

* Cleanups.

* Moved d48 to handwired/

* Added link to build process album.

* Coding conventions cleanups.

* Added DS1307 RTC!

* Minor cleanups.

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Minor refactoring.

* Readme fix.

* Moved leftover keymap-specific code from keyboard space into keymap.

* Added encoder button pins to extra matrix row.

* Updated README, updated pinout & cleaned up the glcdfont

* Apply suggestions from code review

Co-Authored-By: Drashna Jaelre <[email protected]>

* Update config.h

* Apply suggestions from code review

Co-Authored-By: Ryan <[email protected]>

* Added default keymap. Refactored existing keymap.

* Update keyboards/handwired/d48/README.md

Co-Authored-By: Ryan <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Joel Challis <[email protected]>

* Minor alignment fix.

* Update keyboards/handwired/d48/glcdfont_d48.c

Co-Authored-By: Ryan <[email protected]>

* Changes as per PR.

* Apply suggestions from code review

Co-authored-by: James Young <[email protected]>

Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: James Young <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants