Author Topic: Easy AVR USB Keyboard Firmware and Keymapper  (Read 587891 times)

0 Members and 3 Guests are viewing this topic.

Offline worldspawn

  • Posts: 221
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1100 on: Wed, 08 July 2015, 08:15:42 »
it's specifically a 32u4-AU

Grounding the PE2 pin on reset was successful, grounding on startup was not, FYI.
« Last Edit: Wed, 08 July 2015, 08:34:15 by worldspawn »
I can make acrylic laser cut cases/plates PM for info

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1101 on: Wed, 08 July 2015, 08:24:13 »
it's specifically a 32u4-AU
Relying on what the datasheet says about the default configuration of fuses, I would recommend trying connecting PE2 with ground and  resetting the board (short the jumper). Of course please check first that PE2 isn't connected to VCC in your design...

Offline worldspawn

  • Posts: 221
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1102 on: Wed, 08 July 2015, 08:33:07 »
it's specifically a 32u4-AU
Relying on what the datasheet says about the default configuration of fuses, I would recommend trying connecting PE2 with ground and  resetting the board (short the jumper). Of course please check first that PE2 isn't connected to VCC in your design...

Yep, that did it, thanks much!
I can make acrylic laser cut cases/plates PM for info

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1103 on: Wed, 08 July 2015, 08:37:38 »
Grounding the PE2 pin on reset was successful, grounding on startup was not, FYI.
Glad to hear that you've gotten to the bootloader!

Hm. I guess I'll need to read the datasheet some more.

Anyway, this should mean that if you don't use PE2 for anything in your keyboard, just leave it tied to ground - that way you'll have a KB on power-up and bootloader on reset...

Offline worldspawn

  • Posts: 221
  • Location: Austin, TX
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1104 on: Wed, 08 July 2015, 08:53:08 »
I thought about that, but it's tied to one of my matrix rows  :(
I can make acrylic laser cut cases/plates PM for info

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4914
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1105 on: Wed, 08 July 2015, 08:55:38 »
On all of my designs I leave PE2 tied to ground.  It isn't an absolute requirement, though.

Offline VinnyCordeiro

  • Posts: 432
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1106 on: Wed, 08 July 2015, 09:13:05 »
I thought about that, but it's tied to one of my matrix rows  :(
You can add a SPDT switch on this port. In one position it would act as a part of the matrix, the other position would be to allow bootloader mode.

Offline bovineblitz

  • Posts: 25
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1107 on: Wed, 08 July 2015, 10:04:12 »
It's handwired.  The highlighting/unhighlighting seems random now that I play with it again.  Other arrows are fine.

Have you tried aqua key test to confirm which keys light up when you hold shift and up?  Sounds like you might have a diode backwards causing ghost presses :)

Good idea!  So I think you're right.  If I hold shift and hit up, shift becomes unhighlighted.  Same thing with other keys in the row (hold z and hit up, z becomes unhighlighted).  Thanks for the help!
Magicforce 68 with speed coppers
Custom TKL with ergo clears
Das Model S
TKL with Outemu blues
In progress: Click-modded cream ALPS Neutrino build

Offline flabbergast

  • Posts: 234
  • Location: UK
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1108 on: Wed, 08 July 2015, 10:04:48 »
In my designs I generally use PE2 as a normal pin and have HWBE fuse unprogrammed (so that it's not used for determining whether to enter the bootloader or not), and BOOTRST programmed, so that bootloader is always entered. But then I usually use a serial bootloader, compiled from LUFA example projects, with an added logic at the beginning which decides when to run the bootloader and when the application.

ATMEL DFU bootloader sources are also available, but I understand LUFA stuff better than ATMEL ASF framework, so it's easier for me to do the modifications.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4914
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1109 on: Wed, 08 July 2015, 10:48:18 »
It's handwired.  The highlighting/unhighlighting seems random now that I play with it again.  Other arrows are fine.

Have you tried aqua key test to confirm which keys light up when you hold shift and up?  Sounds like you might have a diode backwards causing ghost presses :)

Good idea!  So I think you're right.  If I hold shift and hit up, shift becomes unhighlighted.  Same thing with other keys in the row (hold z and hit up, z becomes unhighlighted).  Thanks for the help!

Sounds like you have a wiring problem.

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1110 on: Wed, 08 July 2015, 23:59:38 »
"Cant build binary"
"Error: list index out of range"

what does this meannnn

IBM SSK 87'     ReAlForce 55g Silent 10AE

Offline faxe

  • Posts: 71
  • Location: Cologne, Germany
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1111 on: Thu, 09 July 2015, 03:44:53 »
I would like a macro to be fun@home.com but can't get the macro to print the @ character "fun\ALT(64)home.com" prints "fun♠♦home.com". Any ideas?

ISO Clueboard V2 Zealio 78g -ISO Clueboard V1 MX Clear - ISO 60% MX Clear - ISO Filco MJ 2 MX Brown - ISO is life

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1112 on: Thu, 09 July 2015, 04:29:35 »
"Cant build binary"
"Error: list index out of range"

what does this meannnn

It means it doesn't work :))

What board are you trying to build it for, and what version of EasyAVR are you using?

The only time I've seen that message was when the handwire was being added and then it was a bug, but I've just checked the most recent beta and it builds here, so might be a completely different problem.
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1113 on: Thu, 09 July 2015, 04:31:58 »
"Cant build binary"
"Error: list index out of range"

what does this meannnn

It means it doesn't work :))

What board are you trying to build it for, and what version of EasyAVR are you using?

The only time I've seen that message was when the handwire was being added and then it was a bug, but I've just checked the most recent beta and it builds here, so might be a completely different problem.

handwire and im using v13
i did change the pin values in the directory

IBM SSK 87'     ReAlForce 55g Silent 10AE

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1114 on: Thu, 09 July 2015, 04:37:46 »
"Cant build binary"
"Error: list index out of range"

what does this meannnn

It means it doesn't work :))

What board are you trying to build it for, and what version of EasyAVR are you using?

The only time I've seen that message was when the handwire was being added and then it was a bug, but I've just checked the most recent beta and it builds here, so might be a completely different problem.

handwire and im using v13
i did change the pin values in the directory

This has version numbers?  I thought it used dates...  The latest says version 13 in "About" but there have been way more than 13 builds.

Can you post your config so I can try and debug?  If it builds without tweaks it should build with them :)
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1115 on: Thu, 09 July 2015, 04:42:31 »

This has version numbers?  I thought it used dates...  The latest says version 13 in "About" but there have been way more than 13 builds.

Can you post your config so I can try and debug?  If it builds without tweaks it should build with them :)

I was using the beta one, i will also try the latest.
http://i.imgur.com/jPyeYyb.png

IBM SSK 87'     ReAlForce 55g Silent 10AE

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1116 on: Thu, 09 July 2015, 04:46:33 »

This has version numbers?  I thought it used dates...  The latest says version 13 in "About" but there have been way more than 13 builds.

Can you post your config so I can try and debug?  If it builds without tweaks it should build with them :)

I was using the beta one, i will also try the latest.
http://i.imgur.com/jPyeYyb.png

The beta is the latest.  Who'd want to use an out of date one?! :))

I'll have a look now.
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1117 on: Thu, 09 July 2015, 04:52:41 »
That looks fine, I'm not going to type it out to replicate the error.

One thing I just noticed is there's a Caps Lock LED set in the "all keys" layout but you have no LED pin assigned - have you disabled it?  That might confuse it enough to fail to build.
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1118 on: Thu, 09 July 2015, 04:59:30 »
i wasn't planning on having a led indicator for any keys. i did use one led pin on the 2.0

IBM SSK 87'     ReAlForce 55g Silent 10AE

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1119 on: Thu, 09 July 2015, 05:02:08 »
Fair enough, but if you go in "View -> LED configuration" is there one set?

Using the LED pin on the 2.0 is dodgy, but it won't stop it compiling :)

Edit: Seems there is code in there to prevent the use of D6 as either LED or part of the matrix, so this is not the issue. 


@metaliqaz - why can't D6 be used?  With a trans plate the built in LED is plenty bright enough to be visible, it's also possible to short the LED and use the pin normally and on other controllers it's not even an LED - can this block be changed to a warning message or is this going against the "Easy" you're going for?
« Last Edit: Thu, 09 July 2015, 05:40:24 by suicidal_orange »
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1120 on: Thu, 09 July 2015, 12:58:27 »
Yeah, it w update be nice if I didn't have to replace that pin. I ran out of room in my case, so I had to solder directly to the teensy. Thanks again for this program. Aside from that everything seems super simple.

IBM SSK 87'     ReAlForce 55g Silent 10AE

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1121 on: Mon, 13 July 2015, 13:50:07 »
Is there anyway to disable the restriction on using d6?

IBM SSK 87'     ReAlForce 55g Silent 10AE

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4914
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1122 on: Mon, 13 July 2015, 21:05:59 »
Is there anyway to disable the restriction on using d6?

What restriction on using D6?

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1123 on: Mon, 13 July 2015, 21:23:13 »
Is there anyway to disable the restriction on using d6?

What restriction on using D6?


I was told above that the reason I'm getting a error was because a had a column on d6

IBM SSK 87'     ReAlForce 55g Silent 10AE

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1124 on: Tue, 14 July 2015, 03:10:19 »
Is there anyway to disable the restriction on using d6?

What restriction on using D6?


I was told above that the reason I'm getting a error was because a had a column on d6

That would be my fault.  I just tried to confirm to note the actual error given but seems I was asleep that day and I've got D6 on a row and a column so it's no surprise it doesn't like it.  Works fine with it in there just once  :-[

Anyway, fknraiden's error was different to the one I was getting - it's like the error when you were first developing the handwire.  I think everything you need is in the previous 10 posts...

Sorry for the confusion!
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4914
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1125 on: Tue, 14 July 2015, 06:48:04 »

This has version numbers?  I thought it used dates...  The latest says version 13 in "About" but there have been way more than 13 builds.

Can you post your config so I can try and debug?  If it builds without tweaks it should build with them :)

I was using the beta one, i will also try the latest.
http://i.imgur.com/jPyeYyb.png

This is a software bug.  I made some kind of coding error and didn't test it sufficiently before posting the software.

If you have a save file please send it to me.

If you can try making a new layout from scratch, give it a shot and see if the error still persists.

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1126 on: Tue, 14 July 2015, 13:28:27 »
I'm just headed out the door but I'll try and send you that folder when I get home.

IBM SSK 87'     ReAlForce 55g Silent 10AE

Offline Danboard

  • Posts: 105
  • Location: Vancouver, BC
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1127 on: Thu, 16 July 2015, 15:46:04 »
Hey guys, sorry about the basic question but I feel like I'm missing something.

I'm trying to enable the backlight to be on by default for my KMAC2, but searching the thread I see references to the config console. Setting the config console on my FN layer and hitting the combination doesn't seem to do anything. I'm assuming I'm overlooking something really basic  :-[
« Last Edit: Thu, 16 July 2015, 15:49:00 by Danboard »

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1128 on: Thu, 16 July 2015, 15:55:48 »
Hey guys, sorry about the basic question but I feel like I'm missing something.

I'm trying to enable the backlight to be on by default for my KMAC2, but searching the thread I see references to the config console. Setting the config console on my FN layer and hitting the combination doesn't seem to do anything. I'm assuming I'm overlooking something really basic  :-[

Have a read of console.txt in the doc folder (the helpful bit is near the bottom of the file...) you need to press the key in a text editor :)
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline Danboard

  • Posts: 105
  • Location: Vancouver, BC
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1129 on: Thu, 16 July 2015, 15:57:56 »
Hey guys, sorry about the basic question but I feel like I'm missing something.

I'm trying to enable the backlight to be on by default for my KMAC2, but searching the thread I see references to the config console. Setting the config console on my FN layer and hitting the combination doesn't seem to do anything. I'm assuming I'm overlooking something really basic  :-[

Have a read of console.txt in the doc folder (the helpful bit is near the bottom of the file...) you need to press the key in a text editor :)

Welp. Right you are!

Its always the little things that get me. Thanks a lot suicidal_orange!

Offline fknraiden

  • Posts: 496
  • Location: Portland, OR
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1130 on: Sat, 18 July 2015, 02:24:25 »
not sure if you got a chance to look at the link i sent you. It'd be nice to have this done, no serious rush since caps for this are still in production.

IBM SSK 87'     ReAlForce 55g Silent 10AE

Offline Prelim

  • Posts: 521
  • Location: Portugal
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1131 on: Sun, 19 July 2015, 19:10:28 »
is this working with GH60 rev.C pcb?
GH60 rev.C - lubed Gat blacks 65g | Poker II - lubed vintage blacks 65g | Ducky Shine 3 TKL  - blacks, white led | Dolch PAC ISO - lubed blacks 65g | Raptor K1 G80-1890HUARF | G80-1800HPP - lubed blacks 65g
Floating on Cherry/GMK caps - WoB, Classic Beige, Dolch, Olivetti, Alcatel MMK and Hellgrau ;)

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4914
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1132 on: Mon, 20 July 2015, 21:23:54 »
not sure if you got a chance to look at the link i sent you. It'd be nice to have this done, no serious rush since caps for this are still in production.

Yeah, sorry dude.  Summer time.  At least I was able to upgrade my drainage last weekend.  Looking now.

I have a list of jobs to do.  I'm going to collect them all from the thread and list them on the wiki page so I can get organized.  I encourage people to post notes in the TODO section there to help me understand what is needed

Offline simonyunhe

  • Posts: 238
  • Location: Alxa, China
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1133 on: Thu, 23 July 2015, 09:44:42 »
Please make one for Atomic keyboard from ortholinear keyboards :thumb:
KeyBs:|RS96-Brown|GS-87-White|DIYer60-Red|VA68M-Brown|Matrix Cain-?|GS-ALT71-Blue|
KeyCs:|SA Carbon R1+2|SA Camping|SA Amazing Chocolatier|SA Commando 88 Ghost|SA Dasher & Dancer+Blue Add-on|SA Hyperfuse|SA Penumbra|SA Doom|SA Creamy Orange|SA Ocean Dolch|SA Lotus*72|SA Trouble Minds R2|DSA Granite|GMK TA|GMK CMYK|GMK Soware|XDA Mailstone|GM Ember|

Offline RavenII

  • Posts: 191
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1134 on: Thu, 23 July 2015, 11:19:41 »
Please make one for Atomic keyboard from ortholinear keyboards :thumb:

You could (arguably should) use the handwired option...it's pretty easy to be honest.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4914
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1135 on: Thu, 23 July 2015, 11:21:25 »
If the have a pcb for sale, ill add easier support. If they just sell teensy kits, handwire is most appropriate, i think

Offline simonyunhe

  • Posts: 238
  • Location: Alxa, China
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1136 on: Thu, 23 July 2015, 18:18:23 »

If the have a pcb for sale, ill add easier support. If they just sell teensy kits, handwire is most appropriate, i think
The pcb is just done and the prototype had been tested.
KeyBs:|RS96-Brown|GS-87-White|DIYer60-Red|VA68M-Brown|Matrix Cain-?|GS-ALT71-Blue|
KeyCs:|SA Carbon R1+2|SA Camping|SA Amazing Chocolatier|SA Commando 88 Ghost|SA Dasher & Dancer+Blue Add-on|SA Hyperfuse|SA Penumbra|SA Doom|SA Creamy Orange|SA Ocean Dolch|SA Lotus*72|SA Trouble Minds R2|DSA Granite|GMK TA|GMK CMYK|GMK Soware|XDA Mailstone|GM Ember|

Offline punkpc

  • Posts: 137
  • Location: Naptown, Indiana
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1137 on: Wed, 29 July 2015, 17:19:07 »
So I tried searching, but I could not find if this has been asked before.

So is there a way to get the scan codes for certain Mac keys added? I have tested and the volume controls work, but none of the other media controls work. (Play/Pause, Prev Track, Next Track), I would like to also know if the other Mac command could be added.

Like these?


These are really the only commands I can't get to work with out extra software. Also the Keyboard illumination keys are not needed.



Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1138 on: Wed, 29 July 2015, 17:31:38 »
I received a Mac keyboard in the post today and read the quickstart guide, I think it says that the Fx keys default to media keys etc and you have to set an option to get Fx scancodes.  Have you tried choosing the Fx keys as labelled in tiny font in your pic?  I may be way off as I've not seen a Mac for years but looks worth a try :)
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline nalui333

  • Posts: 10
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1139 on: Sun, 02 August 2015, 11:12:49 »
I love you guys, you're always keeping me on my toes.  The project would still look like this if you weren't driving me to improve.

Question 1:  I know that switching to FN2 overrides FN1, and then FN3, will override whatever else is "locked", but is there a scancode or keypress to bring the keyboard back to "FN0" - the default layer?

Right now I am using toggle keys for FN1, FN2, and FN3, and pressing any of the three keys moves the keyboard to the desired active layer.  However, there seems to be no way to hit a key to bring the keyboard back to the default state.  (I can, of course, hit the current toggle, or another toggle twice to accomplish a reset to default, but I'd prefer some sort of "Escape to default" key.)

Am I (hopefully) missing something clever?

I think suicidal_orange has it right.  You're using all your layer keys as toggle.  Okay, nothing wrong with that.  Now, mentally create the layout you want with the "return to default" key.  To create that layout in the Easy keymapper, just replace that "return to default" key with the layer key for the current layer.  Done!

In the past, I've been asked for "layer up" and "layer down" keys, and I've responded the same way.  The current set of configuration options are general purpose, and thus able to map that scheme among many others.



Hi great work you have here but quick question about this post. If I understand you correctly what you're saying is that on function layer 2 there has to be a FN2 key to get me back to default? likewise for every other layer i.e fn layer 3 needs a fn3 key, fn layer 4 needs a fn4 key

I'm working on a split design and using the handwire matrix, what i was thinking of doing was to have  fn (or fn +1) to take me to layer 1, fn + 2 => layer 2.

 So that as long as i have number keys on every layer all i need is a fn key to get me to anywhere i want without changing the meaning of the fn key at every layer or having to first go back to default with e.g.  the fn3 in layer 3 before using the fn key to get back to the fn layer (ie. fn1 - layer1).

 Is this only acheivable with macros (seems like)?

Offline nalui333

  • Posts: 10
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1140 on: Sun, 02 August 2015, 11:46:24 »
One other question, i'm thinking of  creating a layout for an international language?

 Is it possible to map keys to the diacritical marks such that if i type e and then that key (e.g. acute or grave accent in unicode)  i get an accented e e.g.  

The diactrical marks are just unicode strings so unicode 0301 and 0300 for acute and grave accents. 

The idea is that rather than create a ton of specific characters most of the characters in this language is created by using latin letters but adding diacritical marks to individual characters/letters as needed.   

I just did a check and it's basically what the altGr key does. so i guess what i'm asking is if there's a way to create keys with user defined altgr behaviour? Hope that makes sense. Thanks

I know this is likely the realm of xkblayouts but was just curious if it even remotely makes sense in this space.
« Last Edit: Sun, 02 August 2015, 11:49:33 by nalui333 »

Offline AKmalamute

  • HHKB Scrub
  • Posts: 827
  • Location: Western WA, USA
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1141 on: Sun, 02 August 2015, 11:54:09 »
>Nalui333
>If I understand you correctly what you're saying is tha
>on function layer 2 there has to be a FN2 key to get me back to default?

 If you're using 'toggle' yes. If you're using "normal" than technically no but the key "under" the Fn key you're holding is not available to you because when you let go of the Fn key, you're not in that layer anymore. The way I get around that is have two Fn keys on the main layer, and none on the first layer down. If I want the key under my first Fn key, I use the second Fn key to expose it.

> likewise for every other layer

 This software does "layers" a little differently that TMK, which may be what you're thinking of. When you push a Fn_ key, it "turns on" that layer. To go to a different layer you have to "turn on" that one. For most usages (sorry, just came into this discussion now) you'd mostly want to be on the home layer, so you'd define a toggle key to "turn off" the layer you're on.

>what i was thinking of doing was to have  fn (or fn +1)

 This software definitely does not increment, nor decrement, its layers. Press a key to go to the indicated layer, that's what it does.

 Now, I did ask once, and have since proven it true that you can have (again I use 'noraml') a Fn_ key in each layer. So, on Fn0 there's a nearby key that goes to Fn1. In that layer there's two keys, one to Fn2, and another to Fn3. I can 'walk' my way to Fn3 (in fact that's the only way there as the only Fn3 key I have is exposed in Fn1) But you have to keep in mind how EasyKeymap does layers ... they're not additive, you just choose them.

> without changing the meaning of the fn key at every layer

 The beauty of programmable keyboards, is you can give meaning to each key as you see fit, in each layer. On my JD45 the Fn keys move around for each layer. But I remember where the keys are in each layer too. If you want to both use 'toggle' and label a key "Fn2" and have the label always be right, yes you'll need to define that key as that meaning in every layer.

Edit:
>I just did a check and it's basically what the altGr key does

Just a reminder, that keyboards send scan codes, not characters. Think about what you'd type on an uninterpreted, plain-jane keyboard, and that gets you most of your answer.

 Having said that, I believe the answer is no, because recent versions have a checkbox for "with Ctrl" & "with Alt" etc but not "with Right-Alt" which is the scancode of AltGr.

 Again TMK may require more programming knowledge, but it also does more of what you're trying to do.
« Last Edit: Sun, 02 August 2015, 11:58:26 by AKmalamute »

HHKB-lite2, Dvorak user

Offline nalui333

  • Posts: 10
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1142 on: Sun, 02 August 2015, 12:32:59 »
>Nalui333
>If I understand you correctly what you're saying is tha
>on function layer 2 there has to be a FN2 key to get me back to default?

 If you're using 'toggle' yes. If you're using "normal" than technically no but the key "under" the Fn key you're holding is not available to you because when you let go of the Fn key, you're not in that layer anymore. The way I get around that is have two Fn keys on the main layer, and none on the first layer down. If I want the key under my first Fn key, I use the second Fn key to expose it.

> likewise for every other layer

 This software does "layers" a little differently that TMK, which may be what you're thinking of. When you push a Fn_ key, it "turns on" that layer. To go to a different layer you have to "turn on" that one. For most usages (sorry, just came into this discussion now) you'd mostly want to be on the home layer, so you'd define a toggle key to "turn off" the layer you're on.

>what i was thinking of doing was to have  fn (or fn +1)

 This software definitely does not increment, nor decrement, its layers. Press a key to go to the indicated layer, that's what it does.

 Now, I did ask once, and have since proven it true that you can have (again I use 'noraml') a Fn_ key in each layer. So, on Fn0 there's a nearby key that goes to Fn1. In that layer there's two keys, one to Fn2, and another to Fn3. I can 'walk' my way to Fn3 (in fact that's the only way there as the only Fn3 key I have is exposed in Fn1) But you have to keep in mind how EasyKeymap does layers ... they're not additive, you just choose them.

> without changing the meaning of the fn key at every layer

 The beauty of programmable keyboards, is you can give meaning to each key as you see fit, in each layer. On my JD45 the Fn keys move around for each layer. But I remember where the keys are in each layer too. If you want to both use 'toggle' and label a key "Fn2" and have the label always be right, yes you'll need to define that key as that meaning in every layer.

Edit:
>I just did a check and it's basically what the altGr key does

Just a reminder, that keyboards send scan codes, not characters. Think about what you'd type on an uninterpreted, plain-jane keyboard, and that gets you most of your answer.

 Having said that, I believe the answer is no, because recent versions have a checkbox for "with Ctrl" & "with Alt" etc but not "with Right-Alt" which is the scancode of AltGr.

 Again TMK may require more programming knowledge, but it also does more of what you're trying to do.

Thanks your response is highly appreciated. I can work with tmk but in my engineering career my rule of thumb is to not complicate things unless you have to hence starting with this firmware.... thanks again

Offline AKmalamute

  • HHKB Scrub
  • Posts: 827
  • Location: Western WA, USA
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1143 on: Sun, 02 August 2015, 12:40:42 »
Thanks your response is highly appreciated. I can work with tmk but in my engineering career my rule of thumb is to not complicate things unless you have to hence starting with this firmware.... thanks again

everyone starts with this program anymore, exactly because it's easy to see what you're doing, and is enough for 90% of the users out there. Too, if AltGr gets you what you want, you could put it on the left. Again, programmable keyboards - put the keys where you want them.

 Then reprogram later, where you put them where you need them instead  :))

HHKB-lite2, Dvorak user

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1144 on: Sun, 02 August 2015, 12:49:38 »
I love you guys, you're always keeping me on my toes.  The project would still look like this if you weren't driving me to improve.

Question 1:  I know that switching to FN2 overrides FN1, and then FN3, will override whatever else is "locked", but is there a scancode or keypress to bring the keyboard back to "FN0" - the default layer?

Right now I am using toggle keys for FN1, FN2, and FN3, and pressing any of the three keys moves the keyboard to the desired active layer.  However, there seems to be no way to hit a key to bring the keyboard back to the default state.  (I can, of course, hit the current toggle, or another toggle twice to accomplish a reset to default, but I'd prefer some sort of "Escape to default" key.)

Am I (hopefully) missing something clever?

I think suicidal_orange has it right.  You're using all your layer keys as toggle.  Okay, nothing wrong with that.  Now, mentally create the layout you want with the "return to default" key.  To create that layout in the Easy keymapper, just replace that "return to default" key with the layer key for the current layer.  Done!

In the past, I've been asked for "layer up" and "layer down" keys, and I've responded the same way.  The current set of configuration options are general purpose, and thus able to map that scheme among many others.



Hi great work you have here but quick question about this post. If I understand you correctly what you're saying is that on function layer 2 there has to be a FN2 key to get me back to default? likewise for every other layer i.e fn layer 3 needs a fn3 key, fn layer 4 needs a fn4 key

I'm working on a split design and using the handwire matrix, what i was thinking of doing was to have  fn (or fn +1) to take me to layer 1, fn + 2 => layer 2.

 So that as long as i have number keys on every layer all i need is a fn key to get me to anywhere i want without changing the meaning of the fn key at every layer or having to first go back to default with e.g.  the fn3 in layer 3 before using the fn key to get back to the fn layer (ie. fn1 - layer1).

 Is this only acheivable with macros (seems like)?

AKmalamute has explained this but I've never used TMK so the comparison is lost on me so I'm going to answer too - hopefully between the two of us you'll understand :)

What you're looking for is to have many layers easily accessible, to do this you need to choose one layer to use for your "layer selection layer" - I've chosen to use FN in this example.

On the FN layer you assign keys 1-9 to FN1-FN9 (FN1 is FN) and all of these need to be set to "Toggle" in the mode option to make the layer switch permanent so you don't have to hold anything while using the layer.

Then you choose a key to use as the layer selection key and on each other layer assign that key to FN so it's always accessible - this needs to be "Normal" in the mode box so you have to hold it for the layer to stay active, if you change your mind let it go and you stay on the current layer.

And that's it - two key access to any layer at any time :)
« Last Edit: Sun, 02 August 2015, 13:32:29 by suicidal_orange »
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline nalui333

  • Posts: 10
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1145 on: Sun, 02 August 2015, 13:13:51 »
ok wait maybe i misunderstood, the layers thing.

I'm thinking :
default : fn2 (toggle)   fn(normal)
layer1 :  fn2(normal)   fn3(normal)
layer2 :  fn2 (toggle)   fn(normal)  (are you saying i have to define the fn2 toggle in both the default layer and layer 2 to go back and forth between default and layer2)
layer3 :  fn4(normal)   fn(normal)
layer4 :  fn5(normal)   fn(normal)   (all of this just so i can get from 3 to 4, 4 to 5 etc  and back to layer1 without too many key presses)
.
.
.
Okay i responded before i saw suicidal_oranges response... let me re-read and digest that...

incidentally i suspected about the one layer holding all the function keys pattern and had done that, just wanted to be sure there wasn't any other way..... the toggle part is probably what i need to wrap my ends around now....

---- update -----

okay i get suicidals explanation.

Thanks folks.
« Last Edit: Sun, 02 August 2015, 13:24:17 by nalui333 »

Online suicidal_orange

  • * Global Moderator
  • Posts: 3335
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1146 on: Sun, 02 August 2015, 13:29:51 »
Actually I've made a mess of my explanation - you don't want to be messing with key 1 at all!  That'll teach me for posting without reading it through before running off to eat, I'll fix it now...  :-[
« Last Edit: Sun, 02 August 2015, 13:33:28 by suicidal_orange »
                               
Ducky Zero, MX Reds    JD40, Jailhouse Blues           GH60
Soarer controller

Offline nalui333

  • Posts: 10
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1147 on: Sun, 02 August 2015, 13:37:49 »
Actually I've made a mess of my explanation - you don't want to be messing with key 1 at all!  That'll teach me for posting without reading it through before running off to eat, I'll fix it now...  :-[

funny i actually understood your original explanation (i guess we fill in the gaps...) but the edit made it clearer.

Now to go get some brewskis....and conceive a wooden case for the keyboard.....

Offline nalui333

  • Posts: 10
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1148 on: Sun, 02 August 2015, 19:00:24 »
oh well it looks like my diodes are pointing the wrong way....now to go work on tmk....

Offline cgbuen

  • Posts: 318
  • Location: SF Bay Area, USA
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #1149 on: Sat, 08 August 2015, 02:41:22 »
During boot, it goes to a grub menu, and the ergodox arrow keys are useless. But if I warm boot, sometimes it will work. If I have a regular USB keyboard attached when I warm boot (never first the first, cold boot) then the arrow keys on the ergodox (mass drop / benblazek code) works fine.

Thanks!  This was the hint I needed.

 - Ron | samwisekoi

[update]
Okay, that was really cool.  An important note that isn't covered in the doc (Easy_keymap_2014mmdd/doc/console.txt) is that you must also have the digits 0-9 and the Enter key mapped.  This would normally not require mentioning, but I have only 1-5 on my GH36 map, and I just happened to add 6-0 to the function layer this morning.

Anyhow, follow the doc, make sure you have 0-9 and Enter mapped, and it works.  Now to see if this fixed the problem with my main Linux machine at home.
[/update]


I've actually had this problem for a very, very long time now (arrow keys not working in GRUB), which led me to avoid using nearly every one of the customs I own, because I generally do have to boot between Ubuntu and Windows pretty frequently.

I reprogrammed my KMAC LE tonight after I came across Ron's message. I assume he meant the numpad 0-9/Enter - whatever the case, I mapped them on another layer (so my non-numpad versions are also intact on the main layer). Yet I still have the GRUB arrow key problem.

Anyone have any new insights into this issue?