Kosmosima: two modes of A3 HAT & LED

Moderator: AdminGroup

snp
Posts: 26
Joined: Mon Feb 12, 2018 0:20
Has thanked: 4 times

Kosmosima: two modes of A3 HAT & LED

Postby snp » Thu Dec 10, 2020 18:48

Have played with VKBDevCfg for a while but I feel I'm not even close to the solution. The desired functionality is:

Mode 1:
- A3 HAT works as default, all HAT directions are just buttons
- The top LED is, say, blue

Then I push the HAT (button #10) and the mode changes to Mode 2:
- A3 HAT directions trigger macros (keyboard keypresses)
- The top LED is, say, red

Then I push the HAT (button #10) again and Mode 1 is re-activated. And so on.

Is that possible?

Ron61
Posts: 3278
Joined: Tue Jan 15, 2013 23:56
Location: г.Минск
Has thanked: 44 times
Been thanked: 637 times

Re: Kosmosima: two modes of A3 HAT & LED

Postby Ron61 » Thu Dec 10, 2020 21:32

Clarify - are macros running (a chain of sequential programmed keys) or just individual keyboard keys? Give an example of what should be launched.

snp
Posts: 26
Joined: Mon Feb 12, 2018 0:20
Has thanked: 4 times

Re: Kosmosima: two modes of A3 HAT & LED

Postby snp » Thu Dec 10, 2020 22:19

Series of keystrokes like "down, up, left, left". Four such series for four HAT directions in Mode 2.

The macros are not the issue, though. I struggle to switch modes and to modify LED colour when mode changes.

Ron61
Posts: 3278
Joined: Tue Jan 15, 2013 23:56
Location: г.Минск
Has thanked: 44 times
Been thanked: 637 times

Re: Kosmosima: two modes of A3 HAT & LED

Postby Ron61 » Thu Dec 10, 2020 22:30

Make it a regular HAT 2, cursor keys or keyboards, for example, A, B, C, D? Three options.

snp
Posts: 26
Joined: Mon Feb 12, 2018 0:20
Has thanked: 4 times

Re: Kosmosima: two modes of A3 HAT & LED

Postby snp » Sun Dec 13, 2020 0:00

I feel like the thread goes in wrong direction. Or, at least, not a direction I'd like it to go. :)

So, let me rephrase my question:

How should I configure button, A3 HAT and top LED to make the button switch between two "modes" in which:
- the HAT behaves differently
- LED has different colour

?

User avatar
fallout9
Posts: 5211
Joined: Wed Oct 03, 2018 20:37
Has thanked: 208 times
Been thanked: 1224 times

Re: Kosmosima: two modes of A3 HAT & LED

Postby fallout9 » Mon Dec 14, 2020 0:18

This way:
1. Set up that HAT to be Shift activated (Mode, if you prefer), like here;
2. Close VKBDevCfg and navigate to its folder. Open the file called zconfig.ini, open it and add this line: User=Developer under the [User] section. Save it and close it;
3. Go to Global/ External/ LEDs tab and pick one of the lines with External set as Event. Pull down the roll menu and set it up as Shift (1). Set the OP1 as 1 (2) and LED# as 10 (the RGB LED on grip's head) (3). Play with the settings at (4) to set up your preferred color.
4. Click Set when done (5).
Attachments
2.JPG

snp
Posts: 26
Joined: Mon Feb 12, 2018 0:20
Has thanked: 4 times

Re: Kosmosima: two modes of A3 HAT & LED

Postby snp » Wed Dec 16, 2020 13:19

It works! Thanks a lot! :)

Opacky
Posts: 1
Joined: Tue Jan 19, 2021 1:25

Re: Kosmosima: two modes of A3 HAT & LED

Postby Opacky » Tue Jan 19, 2021 1:27

Open the file called zconfig.ini, open it and add this line: User=Developer under the [User] section. Save it and close it. This is info I needed! Great job!

alex75
Posts: 11
Joined: Sat Feb 20, 2021 21:35
Has thanked: 5 times

Re: Kosmosima: two modes of A3 HAT & LED

Postby alex75 » Thu Mar 18, 2021 14:58

There's a better solution...

GIT GUD wiggler..

what a joke..


Return to “Manuals and Howtos”

Who is online

Users browsing this forum: Google [Bot] and 9 guests