Commit Graph

281 Commits

Author SHA1 Message Date
Gergely Nagy
6aedaf7074 Big Keymap Refactor(tm)
This changes the keymap layout to be as described in #17, and updates the
default layout to follow. (Also adds the missing Space and Mod keys on the two
keys below the bottom row)

The layout itself was considerably simplified by introducing a few local macros
to hide some of the uglier details.

Fixes #17.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-12-12 20:10:42 +01:00
László Monda
1f8fc560e4 Clean up some concepts regarding slots and modules. 2016-12-12 01:01:36 +01:00
László Monda
871a0ec84a Remove variables because they yield warnings which shouldn't happen according to our contributing guide. 2016-12-12 00:25:13 +01:00
László Monda
851d3a9051 Update CONTRIBUTING.md 2016-12-12 00:24:12 +01:00
László Monda
f66eb06712 Coding style fixes. 2016-12-12 00:21:39 +01:00
László Monda
de6218ce0c Convert tabs to 4 spaces. 2016-12-11 23:59:28 +01:00
László Monda
ee87e79791 Update README.md 2016-12-11 23:50:21 +01:00
László Monda
bb37d89de9 Update CONTRIBUTING.md 2016-12-11 23:47:59 +01:00
László Monda
c8b773d266 Update CONTRIBUTING.md 2016-12-11 23:44:40 +01:00
László Monda
93594bbfc8 Update CONTRIBUTING.md 2016-12-11 23:39:24 +01:00
László Monda
a257e55403 Update CONTRIBUTING.md 2016-12-11 23:33:13 +01:00
László Monda
7bebaff8dd Update CONTRIBUTING.md 2016-12-11 23:21:33 +01:00
László Monda
39ad8c6735 Update CONTRIBUTING.md 2016-12-11 23:14:29 +01:00
László Monda
39a9d196f7 Update CONTRIBUTING.md 2016-12-11 22:51:16 +01:00
László Monda
463a9fb8d4 Merge pull request #14 from algernon/f/key-handling-rework
Rework the keyboard layout handling
2016-12-11 19:56:35 +01:00
Gergely Nagy
e758e088a7 Rework the keyboard layout handling
We now use a 32-bit structure to describe each key, and an `uhk_key_t` type that
wraps all the supported things into a union. But this is not the only change: to
be able to move the Fn/Mod keys anywhere, instead of hardcoding their location,
they are now proper layer keys. To make it easier to handle turning a layer off,
key releases can be handled explicitly, too.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-12-11 19:22:31 +01:00
László Monda
b3ed9536c6 Merge pull request #13 from algernon/f/LED/SetAllLedsTo
LEDs: Add a method to set all LEDs to a given brightness
2016-12-11 11:52:56 +01:00
Gergely Nagy
5ee11c2f8f LEDs: Add a method to set all LEDs to a given brightness
Mostly for testing purposes, but can be used later for backlight up/down stuff,
too.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-12-11 09:57:48 +01:00
László Monda
ed0b51dbff Restore the original I2c{Read,Write}() implementations to make the communication between keyboard halves fully functional again. Fixes #8. 2016-12-09 22:24:15 +01:00
László Monda
6c6afd6395 Make comments more explicit. 2016-12-09 21:59:19 +01:00
László Monda
71e0ae79d7 Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware 2016-12-09 21:44:31 +01:00
László Monda
c47105afd3 Change I2cRead() and I2cWrite() to more closely resemble I2C_MasterReadBlocking() and I2C_MasterWriteBlocking() respectively. This way, we should be able to figure out the root cause of the communication error regarding the blink script more easily. 2016-12-09 21:44:03 +01:00
László Monda
a8b19750a9 Update README.md 2016-11-20 18:30:41 +01:00
László Monda
eff18c176d Update README.md 2016-11-20 18:26:24 +01:00
László Monda
5b19c60f87 Update README.md 2016-11-20 18:26:09 +01:00
László Monda
c18d36e31b Merge pull request #6 from xdever/modifier_mask
Fix the bug of additional characters when mod key is released before the other key.
2016-11-14 22:55:04 +01:00
Robert Csordas
f2c750cdf9 Refactoring 2016-11-14 22:41:39 +01:00
Robert Csordas
5cf1da0cfe Fixes the bug of additional characters when mod key is released before the other key 2016-11-14 22:09:33 +01:00
László Monda
75b87be468 Merge pull request #5 from xdever/i2c_fix
Fix i2c hangs when disconnecting the left half.
2016-11-13 21:12:57 +01:00
Robert Csordas
1d2f35dfe9 Fix i2c hangs when disconnecting the left half. 2016-11-13 18:35:22 +01:00
László Monda
dbb30ef861 Merge pull request #4 from xdever/simple_keymap
Add QWERTY keymap
2016-11-13 17:45:09 +01:00
Robert Csordas
93752a7347 CPU suspend for left half 2016-11-13 15:56:31 +01:00
Robert Csordas
fc434c7857 Remove keyboard scanning from USB interrupt. Fix initial blink of LEDs when initializing. Coding style fixes. 2016-11-13 15:50:49 +01:00
Robert Csordas
f2d3963b14 Remove eclipse's bullshit. 2016-11-13 11:29:02 +01:00
Robert Csordas
190d555221 Refactoring and bugfixes. 2016-11-13 11:25:29 +01:00
Robert Csordas
b3bc436bbb Fix typo+basic power management 2016-11-12 20:31:59 +01:00
Robert Csordas
d232e774b7 Fixes+mod keys 2016-11-12 20:25:15 +01:00
Robert Csordas
6dc6c43238 Able to type. 2016-11-12 19:07:39 +01:00
László Monda
907e0a352e Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware 2016-11-10 21:05:32 +01:00
László Monda
809b7bf659 Use HTTPS instead of SSH for submodules. 2016-11-08 16:45:23 +01:00
László Monda
4e456fb3f9 Update README.md 2016-10-22 17:17:49 +02:00
László Monda
05359dc320 Add back the code of the old KeyMatrix functions via ifdefs. 2016-10-20 20:54:14 +02:00
László Monda
a08bdbf124 Reverse the diodes and optimize key scanning as much as possible. 2016-10-20 19:29:36 +02:00
László Monda
f961260443 Expose ISO jumper state over USB. 2016-10-20 00:14:01 +02:00
László Monda
7a6e5523fb Make bidirectional communication work between the keyboard halves. Make the set test LED USB command set the test LED of the left half, too. 2016-10-19 19:39:00 +02:00
László Monda
1286d9cfc3 Remove dead code. 2016-10-18 21:46:04 +02:00
László Monda
5a32ff743c Expose the LED jumper via USB. 2016-10-18 18:58:00 +02:00
László Monda
0ed30b4591 Expose the merge sensor via USB. 2016-10-17 23:21:37 +02:00
László Monda
2d31c3e5ce Add API for the merge sensor. 2016-10-17 23:06:09 +02:00
László Monda
cb7c4d68dd Fix indentation. 2016-10-17 22:54:06 +02:00