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

Ardakilic keymap for crkbd added #13745

Merged
merged 14 commits into from
Jan 9, 2022
Merged

Ardakilic keymap for crkbd added #13745

merged 14 commits into from
Jan 9, 2022

Conversation

Ardakilic
Copy link
Contributor

Description

My keymap for Corne keyboard. This keymap is optimized for typing Turkish while covering my needs for programming, and is similar to #7643 and #7151

Types of Changes

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

Issues Fixed or Closed by This PR

  • None

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).

keyboards/crkbd/keymaps/ardakilic/config.h Outdated Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/config.h Outdated Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/config.h Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/config.h Outdated Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/keymap.c Outdated Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/keymap.c Outdated Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/keymap.c Outdated Show resolved Hide resolved
@drashna drashna requested a review from a team July 29, 2021 17:25
@Ardakilic
Copy link
Contributor Author

CONSOLE_ENABLE=no did not help for my case. My initial lines for size optimisation work though.

I have also added

EXTRAFLAGS+=-flto

to my rules.mk file, and added

#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

to my config.h file. Now it fits.

Please check my last commits. I wonder why disabling console does not reduce the size like my initial commit though.

@drashna
Copy link
Member

drashna commented Jul 30, 2021

No need to add those. LTO_ENABLE = yes does both of those, actually

@drashna
Copy link
Member

drashna commented Jul 30, 2021

Also, you may want to remove snprint/sprint, because this can take up a LOT of space in the firmwar (1.5kb or more).

For rendering numbers, this may be more verbose, but ...

    uint8_t n = get_current_wpm();
    char wpm_counter[4];
    wpm_counter[3] = '\0';
    wpm_counter[2] = '0' + n % 10;
    wpm_counter[1] = (n /= 10) % 10 ? '0' + (n) % 10 : (n / 10) % 10 ? '0' : ' ';
    wpm_counter[0] = n / 10 ? '0' + n / 10 : ' ';
    oled_write_P(PSTR("WPM: "), false);
    oled_write(wpm_counter, false);

This renders a 3 digit character, using the WPM value, and removes empty values (eg 5 vs 005). And this uses ~1.5KB less than using snprintf to do the same.

@Ardakilic Ardakilic requested review from fauxpark and drashna July 30, 2021 21:53
@stale
Copy link

stale bot commented Sep 14, 2021

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@Ardakilic
Copy link
Contributor Author

OK, anythingh else I need to address to? cc/ @drashna @fauxpark

@stale stale bot removed the awaiting changes label Sep 14, 2021
@stale
Copy link

stale bot commented Oct 30, 2021

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@Ardakilic
Copy link
Contributor Author

Are you waiting any further changes from me ?

@stale
Copy link

stale bot commented Jan 9, 2022

Thank you for your contribution!
This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready.

@stale stale bot closed this Jan 9, 2022
@Ardakilic
Copy link
Contributor Author

Apologies for the bump @drashna , this PR had been stale while awaiting for review, and bot auto closed it. @fauxpark approved this, any reason this is left dormant, or won't this be merged ?

Thanks,

@drashna drashna reopened this Jan 9, 2022
@stale stale bot removed the awaiting changes label Jan 9, 2022
keyboards/crkbd/keymaps/ardakilic/keymap.c Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/keymap.c Outdated Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/keymap.c Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/keymap.c Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/keymap.c Outdated Show resolved Hide resolved
keyboards/crkbd/keymaps/ardakilic/rules.mk Outdated Show resolved Hide resolved
@drashna drashna merged commit 8e17f99 into qmk:master Jan 9, 2022
@Ardakilic
Copy link
Contributor Author

Thanks for the review and merge! 🙏

@Ardakilic Ardakilic deleted the forcorne branch January 9, 2022 21:32
ryphon pushed a commit to ryphon/qmk_firmware that referenced this pull request Jan 12, 2022
Ardakilic added a commit to Ardakilic/qmk_firmware that referenced this pull request Feb 9, 2022
Hello, 

This is further update to qmk#13745 , somehow my commit did not get merged 

qmk#13745 (comment)
zvecr pushed a commit that referenced this pull request Feb 9, 2022
* Further update to #13745

Hello, 

This is further update to #13745 , somehow my commit did not get merged 

#13745 (comment)

* Update config.h
Blaradox pushed a commit to Blaradox/qmk_firmware that referenced this pull request Feb 10, 2022
* Further update to qmk#13745

Hello, 

This is further update to qmk#13745 , somehow my commit did not get merged 

qmk#13745 (comment)

* Update config.h
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.

4 participants