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

Sejin EAT-1010M2 keyboard #19802

Closed
wants to merge 1 commit into from
Closed

Conversation

DmNosachev
Copy link
Contributor

Sejin Electronics EAT-1010M2 controller replacement.
Handwired Blue Pill to membrane.

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

Comment on lines +49 to +58

/*
void matrix_init_user(void) {
}
void matrix_scan_user(void) {
}
bool led_update_user(led_t led_state) {
return true;
}
*/
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/*
void matrix_init_user(void) {
}
void matrix_scan_user(void) {
}
bool led_update_user(led_t led_state) {
return true;
}
*/

@@ -0,0 +1,62 @@
# QMK-based firmware for Zenith Z-150 keyboard

![Z-150](https://imgur.com/jayyyvJ.jpg)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
![Z-150](https://imgur.com/jayyyvJ.jpg)
![Z-150](https://i.imgur.com/jayyyvJh.jpg)


Make example for this keyboard (after setting up your build environment):

make handwired/z150:default
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
make handwired/z150:default
make handwired/sejin_eat1010r2:default
Flashing example for this keyboard:
make handwired/sejin_eat1010r2:default:flash

make handwired/z150:default

See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

Copy link
Member

Choose a reason for hiding this comment

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

Please add instruction on entering bootloader mode, as per template.

You can keep the original resistors, but with Black Pill or any other 3.3V controller the LEDs may seem a little dim. Try 150Ω or close value if you want to fix that.


## Black Pill
Copy link
Member

Choose a reason for hiding this comment

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

info.json says this uses a bluepill? May want to clear that up.

"backlight": false,
"sleep_led": false
},
"debounce": 5
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"debounce": 5

"sleep_led": false
},
"debounce": 5
}
Copy link
Member

Choose a reason for hiding this comment

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

This file is missing the x, y coordinates (at the minimum). See configuator support.

Comment on lines +20 to +31
#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 8
#define MATRIX_COLS 16

#define MATRIX_HAS_GHOST

#define NUM_LOCK_LED_PIN B0
#define SCROLL_LOCK_LED_PIN B10
#define CAPS_LOCK_LED_PIN B1

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#include "config_common.h"
/* key matrix size */
#define MATRIX_ROWS 8
#define MATRIX_COLS 16
#define MATRIX_HAS_GHOST
#define NUM_LOCK_LED_PIN B0
#define SCROLL_LOCK_LED_PIN B10
#define CAPS_LOCK_LED_PIN B1
#define MATRIX_HAS_GHOST

Comment on lines +20 to +31
"command": false,
"console": false,
"extrakey": true,
"midi": false,
"mousekey": true,
"nkro": false,
"rgblight": false,
"unicode": false,
"bluetooth": false,
"backlight": false,
"sleep_led": false
},
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"command": false,
"console": false,
"extrakey": true,
"midi": false,
"mousekey": true,
"nkro": false,
"rgblight": false,
"unicode": false,
"bluetooth": false,
"backlight": false,
"sleep_led": false
},
"command": false,
"console": false,
"extrakey": true,
"midi": false,
"mousekey": true,
"nkro": false,
"rgblight": false,
"unicode": false,
"bluetooth": false,
"backlight": false,
"sleep_led": false
},
"indicators": {
"num_lock": "B0",
"caps_lock": "B1",
"scroll_lock": "B10",
},

Comment on lines +18 to +39

void matrix_init_kb(void) {
setPinOutput(NUM_LOCK_LED_PIN);
setPinOutput(CAPS_LOCK_LED_PIN);
setPinOutput(SCROLL_LOCK_LED_PIN);

writePinLow(NUM_LOCK_LED_PIN);
writePinLow(CAPS_LOCK_LED_PIN);
writePinLow(SCROLL_LOCK_LED_PIN);

matrix_init_user();
}

bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
writePin(NUM_LOCK_LED_PIN, !led_state.num_lock);
writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
writePin(SCROLL_LOCK_LED_PIN, !led_state.scroll_lock);
}
return res;
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
void matrix_init_kb(void) {
setPinOutput(NUM_LOCK_LED_PIN);
setPinOutput(CAPS_LOCK_LED_PIN);
setPinOutput(SCROLL_LOCK_LED_PIN);
writePinLow(NUM_LOCK_LED_PIN);
writePinLow(CAPS_LOCK_LED_PIN);
writePinLow(SCROLL_LOCK_LED_PIN);
matrix_init_user();
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
writePin(NUM_LOCK_LED_PIN, !led_state.num_lock);
writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
writePin(SCROLL_LOCK_LED_PIN, !led_state.scroll_lock);
}
return res;
}

@DmNosachev
Copy link
Contributor Author

Sorry, I messed up something in my fork. I'd better delete this pull request and fix everything.

@DmNosachev DmNosachev closed this Feb 11, 2023
@waffle87 waffle87 mentioned this pull request Feb 11, 2023
14 tasks
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.

2 participants