Skip to content

Conversation

@sfjuocekr
Copy link

Made LK3 reflect P/INSERT.

Not sure if insert is a meaningful key to have or another modifier is better.

The bool shift_key_pressed() routine could be changed to int mod_key_pressed() and return a non-zero value for modifier pressed.

Made LK3 reflect P/INSERT. 

Not sure if insert is a meaningful key to have or another modifier is better. 

The bool shift_key_pressed() routine could be changed to int mod_key_pressed() and return a non-zero value for modifier pressed.
const int pins[KEY_NUM] = {3, 6, 7, 8, 9, 10, 11, 12, 13, 0, 2, 3, 4, 6, 7};
const int shift_pins[SHIFT_KEY_NUM] = {1, 5};
const int pins[KEY_NUM] = {3, 6, 7, 8, 9, 10, 11, 12, 13, 0, 2, 3, 4, 5, 6, 7};
const int shift_pins[SHIFT_KEY_NUM] = {1};
Copy link
Member

@Mihaylov93 Mihaylov93 Jan 13, 2020

Choose a reason for hiding this comment

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

As its now 1 value, should be an int instead of a vector of int.

const int shift_pin = 1 for example or a #define to save bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants