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

Improve Zweihander layout for the Ergodox EZ #18737

Merged
merged 11 commits into from
Jan 16, 2023
Prev Previous commit
Next Next commit
Restore power-consumption nerf
  • Loading branch information
adiabatic committed Oct 15, 2022
commit bb67085a7f86b6acc07470a8a76ec45af9a7fcfb
14 changes: 14 additions & 0 deletions layouts/community/ergodox/zweihander-macos/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
Set any config.h overrides for your specific keymap here.
See config.h options at https://docs.qmk.fm/#/config_options?id=the-configh-file
*/

#pragma once
// 15, the default, is too low for Kailh Coppers. I get lots of double presses.
// (ba-dum tish)
// #undef DEBOUNCE
// #define DEBOUNCE 22

// Reduce USB power consumption to 100 mA to make it work with a Lightning to USB 3 Camera Adapter (MK0W2AM/A). ZSA says 100 mA is high enough for the keyboard if you disable the big Shine/Glow LEDs first.
#undef USB_MAX_POWER_CONSUMPTION
#define USB_MAX_POWER_CONSUMPTION 100
4 changes: 4 additions & 0 deletions layouts/community/ergodox/zweihander-macos/readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ Have you looked at the Page Up, Page Down, Home, and End keys on the EDSF keys a
F16, accessed by holding ; and pressing the ' key next to it, is intended for Siri.

\* I pronounce “fn” as “effin’”. Your mileage may vary.

## use it with an iPad

This layout overrides `USB_MAX_POWER_CONSUMPTION` to turn it down to 100 mA instead of the default of 500 mA. This is not what you want if your Ergodox EZ has the Shine or Glow lights, but good if you want to be able to plug it into your iPad’s lightning port with a USB adapter. The indicator lights that tell you what layer you’re on are _not_ Shine or Glow lights.