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

0 Members and 1 Guest are viewing this topic.

Offline Ongoe

  • Posts: 6
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2500 on: Wed, 26 February 2020, 05:08:58 »
Hello everyone, How could I configure a key "One Shot Keys"  in EasyAVR (easykeymap.exe)?
that is, I want to press the shift key once and release it, then press a normal key and
run in capital letters only that first time.
I cant find the solution, :(

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2501 on: Wed, 26 February 2020, 20:44:11 »
Hello everyone, How could I configure a key "One Shot Keys"  in EasyAVR (easykeymap.exe)?
that is, I want to press the shift key once and release it, then press a normal key and
run in capital letters only that first time.
I cant find the solution, :(
I don't think EasyAVR supports that right now. It's an interesting idea. Basically a temporary mod lock. I'll try and think of something

Sent from my Pixel 3 XL using Tapatalk


Offline ErgoMacros

  • Posts: 311
  • Location: SF Bay Area
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2502 on: Wed, 26 February 2020, 23:37:38 »
Hi,
You may be able to do this with settings in your OS, with "Sticky Keys"
Setable in the control panel.

The "disadvantage" is that it turns the feature on/off for Ctrl, Win, and Alt too.
But, if you press and hold shift like you're doing today, it still acts like a normal shift. So no harm done.
Today's quote: '...“but then the customer successfully broke that.”

Offline Ongoe

  • Posts: 6
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2503 on: Thu, 27 February 2020, 01:20:06 »
With autohotkey I have a solution
but is not a clean solution, been the keyboard programmable and when changing PC, is easy to loss the autohotkey script.

------------------------------
$shift::
   Input, OutputVar, L1
   Send +%OutputVar%
-----------------------------
It is not clean because Input wait for letter key only.
It works but I would like as an smart Easy Avr feature.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2504 on: Thu, 05 March 2020, 21:42:01 »
Hello everyone, How could I configure a key "One Shot Keys"  in EasyAVR (easykeymap.exe)?
that is, I want to press the shift key once and release it, then press a normal key and
run in capital letters only that first time.
I cant find the solution, :(

Released version 3.2.1 with this feature

https://github.com/dhowland/EasyAVR/releases/tag/v3.02.01

Offline Ongoe

  • Posts: 6
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2505 on: Sat, 07 March 2020, 11:25:30 »
Very thankful,  :)

Online suicidal_orange

  • * Global Moderator
  • Posts: 3929
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2506 on: Sun, 08 March 2020, 13:12:42 »
8 mods?!  Shift, ctrl, win, alt, alt gr...  I guess JIS has different uses for all the right side mods?  More is always better, great work as always :thumb:
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2507 on: Sun, 08 March 2020, 13:28:21 »
8 mods?!  Shift, ctrl, win, alt, alt gr...  I guess JIS has different uses for all the right side mods?  More is always better, great work as always :thumb:

Since the beginning people have been asking for either left or right mods.  This fixes it once and for all.

Offline Ongoe

  • Posts: 6
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2508 on: Sat, 14 March 2020, 02:28:36 »
Can I use 5 LEDs independents as indicators ?

Using Teensy 2++,
for this options: capital letters, Fn0, Fn1, Fn2, Fn3

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2509 on: Sat, 14 March 2020, 06:01:39 »
Can I use 5 LEDs independents as indicators ?

Using Teensy 2++,
for this options: capital letters, Fn0, Fn1, Fn2, Fn3
I'm not following. Is it a handwired board?

Sent from my Pixel 3 XL using Tapatalk


Offline Ongoe

  • Posts: 6
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2510 on: Sat, 14 March 2020, 07:18:06 »
It is wired same as a Planck, in reality as split planck with 2 PCB for 6x4 keys each, then connected by 2 wires 10 cores with a box that have the Teensy 2.0++ and goes out by USB connector.

I have made before another model hand wired based in same scheme of Planck, wiring is 4x12 in reality, but split too. With Teensy 2.0

My idea is that I can add easily leds to the box of microcontroller.
When testing (learning typing) I have found in some cases that I need info of what layout was active in an easy manner. But dont want decipher blink.

About leds,I need the info, by now the design is without leds.

Online suicidal_orange

  • * Global Moderator
  • Posts: 3929
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2511 on: Sun, 15 March 2020, 07:35:52 »
I think you can use as many LEDs as indicators as you have spare pins, there might be a limit but it's definitely more than 5 because the GH60 config file (snippet below) uses 5.  The names 'Caps key' 'Esc Key' 'WASD' etc are so you know where the LED is, the next bit is the thing they indicate by default (can be changed in the mapper)

Code: [Select]
num_leds = 5
num_ind = 5
num_bl_enab = 4

led_definition = [
    ('Caps Key', 'Caps Lock'),
    ('Esc Key', 'Num Lock'),
    ('WASD', 'Fn Active'),
    ('Poker Arrows', 'Fn2 Active'),
    ('Fn Key', 'Fn3 Active')
]

led_hardware = [
#       Port    Pin    Direction
    ( REF_PORTB, 2, LED_DRIVER_PULLDOWN ),
    ( REF_PORTF, 6, LED_DRIVER_PULLDOWN ),
    ( REF_PORTF, 7, LED_DRIVER_PULLDOWN ),
    ( REF_PORTF, 4, LED_DRIVER_PULLDOWN ),
    ( REF_PORTF, 5, LED_DRIVER_PULLDOWN )

Obviously you'll need to change the pins and PULLUP/PULLDOWN depending on your wiring :)
« Last Edit: Sun, 15 March 2020, 07:42:53 by suicidal_orange »
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline Ongoe

  • Posts: 6
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2512 on: Sun, 15 March 2020, 08:09:34 »
suicidal_orange, thank you, I think is the info I need

Offline Helspong

  • Posts: 18
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2513 on: Tue, 21 April 2020, 01:54:38 »
I hadn't used this application in a while, but yesterday i downloaded the latest version to modify a few things on my keyboard.

I encountered a problem though, i couldn't seem to program the hex-file onto my GH60 anymore. Problem seemed to be with the applications used for programming it to the usb.

dfu-programmer.exe wont run: The code execution cannot proceed because libusb0.dll was not found. Reinstalling the program may fix this problem.

I finally found the file online and downloaded it and put it in the exttools-folder. I put my keyboard in the correct mode for programming and ran it once again. Now i get the message:
dfu-programmer: no device present.

Any advice on how to fix this would be appreciated!

Update:

Once i put the keyboard in bootloader mode it turns up as an unknown device in device manager.
The drivers for this device ar note installed. (Code 28)
A service installation section in this INF is invalid


What i did next was that i tried updating the driver automaticly, which gave the same error all over again. I tried it manually and I chose drivers from a list. Choosing the latest one (from 2013) gave the same error, but chosing the older one from 2010 did the trick.

Conclusion: Everything is now working, with older Atmel drivers.


« Last Edit: Tue, 21 April 2020, 11:23:04 by Helspong »

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2514 on: Fri, 24 April 2020, 13:20:28 »
I hadn't used this application in a while, but yesterday i downloaded the latest version to modify a few things on my keyboard.

I encountered a problem though, i couldn't seem to program the hex-file onto my GH60 anymore. Problem seemed to be with the applications used for programming it to the usb.

dfu-programmer.exe wont run: The code execution cannot proceed because libusb0.dll was not found. Reinstalling the program may fix this problem.

I finally found the file online and downloaded it and put it in the exttools-folder. I put my keyboard in the correct mode for programming and ran it once again. Now i get the message:
dfu-programmer: no device present.

Any advice on how to fix this would be appreciated!

Update:

Once i put the keyboard in bootloader mode it turns up as an unknown device in device manager.
The drivers for this device ar note installed. (Code 28)
A service installation section in this INF is invalid


What i did next was that i tried updating the driver automaticly, which gave the same error all over again. I tried it manually and I chose drivers from a list. Choosing the latest one (from 2013) gave the same error, but chosing the older one from 2010 did the trick.

Conclusion: Everything is now working, with older Atmel drivers.

thanks for the follow-up.  did you install drivers you downloaded from Atmel?

Offline Helspong

  • Posts: 18
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2515 on: Tue, 28 April 2020, 11:42:23 »
thanks for the follow-up.  did you install drivers you downloaded from Atmel?

No problem!

I just browsed existing drivers within Windows itself. To be honest I wasn't completely sure where to find updated drivers from Atmel. I'm sure I would have found them eventually, but since I got it working I stopped looking.

Offline Deacon Cole

  • Posts: 3
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2516 on: Sat, 23 May 2020, 16:57:06 »
Okay, so I managed to crash easykeymap_windows_3_02_01 I'm not sure what I did, but I was using the define keyboard feature, but I just put garbage in some of it because I didn't have that info yet and wanted to see if this thing will work, so it might have saved that keyboard and now it errors on boot:

cx_Freeze: Application Terminated

OnInit returned false, exiting...


I could bumble my way though this, but now the software won't even boot and I can't find whatever was changed or save to delete it and deleting the entire folder that contains the program and exporting a new version from the zip doesn't fix anything.

What do I need to do to make this work again.

EDIT: Apologies. I solved it with a little RTFM.
« Last Edit: Sat, 23 May 2020, 17:05:58 by Deacon Cole »

Online suicidal_orange

  • * Global Moderator
  • Posts: 3929
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2517 on: Sat, 23 May 2020, 17:02:44 »
Assuming you're in Windows you need to delete the board's config file from the path below.  If you don't know the answer just enter something that could be right, not complete garbage - errors and error checking are the biggest weakness in this firmware which otherwise works very well.

c:\users\[you]\.EasyAVR\boards
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2518 on: Sun, 24 May 2020, 13:31:04 »
Even if it was invalid, it shouldn't have crashed like that.

This is what happens when one person writes a sprawling, multi-function app in spare time: unhandled exceptions.

I'll take a look to see if I can make it more robust.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2519 on: Sun, 24 May 2020, 15:38:22 »
Okay, so I managed to crash easykeymap_windows_3_02_01 I'm not sure what I did, but I was using the define keyboard feature, but I just put garbage in some of it because I didn't have that info yet and wanted to see if this thing will work, so it might have saved that keyboard and now it errors on boot:

cx_Freeze: Application Terminated

OnInit returned false, exiting...


I could bumble my way though this, but now the software won't even boot and I can't find whatever was changed or save to delete it and deleting the entire folder that contains the program and exporting a new version from the zip doesn't fix anything.

What do I need to do to make this work again.

EDIT: Apologies. I solved it with a little RTFM.

thanks for letting me know.  I have committed a fix.  Next release should be more robust.

Offline fattredd

  • Posts: 10
  • Location: 127.0.0.1
  • Way to go
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2520 on: Wed, 27 May 2020, 10:30:53 »
Is there a way to send modifiers with a tap key? Macro tap keys would work too. I'm trying to have L/R Shift send parentheses when tapped.

Online suicidal_orange

  • * Global Moderator
  • Posts: 3929
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2521 on: Wed, 27 May 2020, 13:10:13 »
Is there a way to send modifiers with a tap key? Macro tap keys would work too. I'm trying to have L/R Shift send parentheses when tapped.
That should work, you'd need to set the key as shift then the tap keycode would be the macro key.  Not at a computer so can't actually test...
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline fattredd

  • Posts: 10
  • Location: 127.0.0.1
  • Way to go
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2522 on: Wed, 27 May 2020, 14:04:58 »
That should work, you'd need to set the key as shift then the tap keycode would be the macro key.  Not at a computer so can't actually test...
 
The GUI won't allow me to select a macro key as the tap keycode. Do you think I'll have to edit the json file, 9 or am I missing something?

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2523 on: Wed, 27 May 2020, 16:51:48 »
That should work, you'd need to set the key as shift then the tap keycode would be the macro key.  Not at a computer so can't actually test...
 
The GUI won't allow me to select a macro key as the tap keycode. Do you think I'll have to edit the json file, 9 or am I missing something?

You're doing it backwards.  Set the key to be a Shift and then set the tapkey to parentheses.


Offline fattredd

  • Posts: 10
  • Location: 127.0.0.1
  • Way to go
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2524 on: Wed, 27 May 2020, 16:59:53 »
You're doing it backwards.  Set the key to be a Shift and then set the tapkey to parentheses.
I'm pretty sure that's what I'm doing though. Here's a screenshot of the tap code set to '9'. It works how I would expect, but the macro keys are all disabled.
Thanks for your patience. I'm probably just being an idiot.
243656-0

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2525 on: Wed, 27 May 2020, 17:22:39 »
You're doing it backwards.  Set the key to be a Shift and then set the tapkey to parentheses.
I'm pretty sure that's what I'm doing though. Here's a screenshot of the tap code set to '9'. It works how I would expect, but the macro keys are all disabled.
Thanks for your patience. I'm probably just being an idiot.
(Attachment Link)

No, you're not being an idiot.  Tapkeys currently only support alphas.

I think I understand now.  You want parens but of course there is no parens key.  So you get "9".  Let me look into it.

Tapkeys are really just on-the-fly macros.  Might be an opportunity.

Offline fattredd

  • Posts: 10
  • Location: 127.0.0.1
  • Way to go
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2526 on: Wed, 27 May 2020, 17:47:12 »
No, you're not being an idiot.  Tapkeys currently only support alphas.

I think I understand now.  You want parens but of course there is no parens key.  So you get "9".  Let me look into it.

Tapkeys are really just on-the-fly macros.  Might be an opportunity.
Sweet. Good to hear haha. Thank you!

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2527 on: Wed, 27 May 2020, 19:49:09 »
No, you're not being an idiot.  Tapkeys currently only support alphas.

I think I understand now.  You want parens but of course there is no parens key.  So you get "9".  Let me look into it.

Tapkeys are really just on-the-fly macros.  Might be an opportunity.
Sweet. Good to hear haha. Thank you!

By the way, in the mean time, you can hold the other shift key while you tap to get a parens.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2528 on: Sun, 31 May 2020, 15:00:27 »
No, you're not being an idiot.  Tapkeys currently only support alphas.

I think I understand now.  You want parens but of course there is no parens key.  So you get "9".  Let me look into it.

Tapkeys are really just on-the-fly macros.  Might be an opportunity.
Sweet. Good to hear haha. Thank you!

Released v3.03.1

Offline ihab

  • Posts: 1
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2529 on: Fri, 12 June 2020, 06:59:23 »
Hi
I have recently bought a 60% mechanical keyboard from Deltaco it has a chip nr hfd2201kba and i was wondering if it was possible to re-flash it for more customization with easyAVR? I couldn't find much information on this chip other than a post saying that it might be a STM32.

Hope i can get help her thanks in advanced.

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2530 on: Fri, 12 June 2020, 07:42:50 »
Hi
I have recently bought a 60% mechanical keyboard from Deltaco it has a chip nr hfd2201kba and i was wondering if it was possible to re-flash it for more customization with easyAVR? I couldn't find much information on this chip other than a post saying that it might be a STM32.

Hope i can get help her thanks in advanced.
Sorry, EasyAVR only works on AVR microcontrollers.

Sent from my Pixel 3 XL using Tapatalk


Offline pwhit30

  • Posts: 2
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2531 on: Thu, 02 July 2020, 23:52:05 »
Notice that the web page claims that polling rate below 5 ms does not make sense since Cherry MX debounces in 5 ms. That is wrong. 5 ms polling rate will add 2.5 ms to the latency on average regardless of the switch debounce time. I.e. if you care about every millisecond then it makes sense to have shorter polling rate than 5 ms.

That being said, hardly anybody cares about 2.5 ms of added latency. You will lose much more because of long travel time of Cherry MX (pressing about 2 mm till actuation talkes a lot of miliseconds).

I just could not resist to comment on an obviously wrong info on the internet ... this time. Blame me :)

Exactly, that's what polling rate is. And most keyboards nowadays have 1000Hz anyways.
« Last Edit: Thu, 02 July 2020, 23:53:38 by pwhit30 »

Offline Hak Foo

  • Posts: 1246
  • Make America Clicky Again!
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2532 on: Wed, 12 August 2020, 23:23:00 »
I want to automate a task of "hit control, hit control, hit enter".

I've tried to build a macro of
$LCTRL()$WAIT(10)$LCTRL()$WAIT(10)${ENTER}

and it doesn't work.  Putting it into a tester implies it's only "pressing" control once.

If I do

$LCTRL()$WAIT(10)$RCTRL()$WAIT(10)${ENTER}

instead, the distinct keystrokes are recognized.

I'm curious if this is a faulty configuration on my part, some sort of optimization (if someone enters twenty modified keys in a row, it smashes it down to a single hold-down-the-modifier), or a big.
Home: Tactile Pro 4 PC
Work: Customizer 104
Spare: Quickfire XT, Greens, Retro DSA

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2533 on: Thu, 13 August 2020, 01:17:44 »
That's a really good question. I'll look into it

Sent from my Pixel 3 XL using Tapatalk


Offline phinix

  • Posts: 1211
  • Location: Haggis Land
  • RIP typo...
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2534 on: Fri, 14 August 2020, 19:51:07 »
Guys, I hope I won't piss you off with my noob questions here:)

So I got this beautiful QFR keyboard with Forsty Flake.
I would like to add a simple layer to it with pounds sign (board I have is ANSI).
First, I have problem with actual setting things up. Got Flip, got EasyAVR. Now, how can I get this keyboard to be seen by this software?
I understand I need to install Atmel drivers first? Those from Flip folder? How do I do that? I don't see QFR/Atmel keyboard on device list:(
9100 | 3070 | 2x 1TB SSD | Z390 Aorus Pro ITX | 16GB RAM | SFX 600W | Philips 40" 4K BDM4065UC | Sentry 2.0
Realforce R2 55g Novatouched+Deskeys #3 | CM QuickFire Rapid Frosty Flake MX Blacks | DROP CTRL High Profile w/ Glorious Holy Pandas| Model M | Logitech MX518 Legend | X52 PRO
SA: Carbon, Penumbra, 7bit's Round6, Amber Screen Cherry: OG caps XDA: Canvas MDA: Big Bone MT3: Serika

 ::: Phinix Cube ::: Phinix Nano Tower ::: Phinix Aurora ::: Phinix Chimera ::: Phinix Retro :::
star citizen :::  CMDR Phinix 325A LTI

Online suicidal_orange

  • * Global Moderator
  • Posts: 3929
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2535 on: Sun, 16 August 2020, 11:41:57 »
Guys, I hope I won't piss you off with my noob questions here:)

Not at all, though the first answer will always be read the manual :)
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2536 on: Wed, 16 September 2020, 22:20:17 »
I want to automate a task of "hit control, hit control, hit enter".

I've tried to build a macro of
$LCTRL()$WAIT(10)$LCTRL()$WAIT(10)${ENTER}

and it doesn't work.  Putting it into a tester implies it's only "pressing" control once.

If I do

$LCTRL()$WAIT(10)$RCTRL()$WAIT(10)${ENTER}

instead, the distinct keystrokes are recognized.

I'm curious if this is a faulty configuration on my part, some sort of optimization (if someone enters twenty modified keys in a row, it smashes it down to a single hold-down-the-modifier), or a big.

Confirmed.  It will be fixed in the next version.

Online TalkingTree

  • Posts: 2401
  • Location: Italy (142)
    • My projects
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2537 on: Thu, 22 October 2020, 11:51:09 »
I'm to defibrillate a dead post to push my luck with RGB LED indicators.

What I'd like to do is to have one or two RGB LED indicators, specifically WS2812B, on my board with Easy AVR.
I know edfan achieved RGB backlighting on pin C  so I assume it's possible to edit the code to have this functionality on a different pin.

I have a very limited python knowledge so I'm not proficient to get there alone.
I know I'm asking much, but has anyone already tried that with success or do they feel like trying?

Thanks.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Online suicidal_orange

  • * Global Moderator
  • Posts: 3929
  • Location: England
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2538 on: Sat, 24 October 2020, 02:55:49 »
Why do you need a complicated RGB LED for an indicator or two?  Standard 4 pin LEDs are effectively 3 LEDs in one and will work fine, if you have the pins.

While it would be great to add RGB to this the reason the pull request was rejected is that it's not flexible enough and only works on port C, I don't understand Python, the LEDs or the chip to know which is the limitation but am intrigued enough to look into it.

Where did you want to connect them?
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Online TalkingTree

  • Posts: 2401
  • Location: Italy (142)
    • My projects
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2539 on: Sat, 24 October 2020, 07:27:55 »
Why do you need a complicated RGB LED for an indicator or two?  Standard 4 pin LEDs are effectively 3 LEDs in one and will work fine, if you have the pins.
4 pin LEDs would do but they are obsolete technology if you ask me. SMD leds can be daisy chained for multiple usages, such as backlighting as future implementation of both keyboards and software.

While it would be great to add RGB to this the reason the pull request was rejected is that it's not flexible enough and only works on port C, I don't understand Python, the LEDs or the chip to know which is the limitation but am intrigued enough to look into it.
I frankly believe that was a coder designer to only go for pin C. If other firmwares can make it work on every pin, why couldn't Easy AVR?

Where did you want to connect them?
Where as in which pin or what keyboard? In the first case my LEDs are currently wired to B5 and B6. In the latter, any keyboard in my signature.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline metalliqaz

  • * Maker
  • Thread Starter
  • Posts: 4945
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2540 on: Sat, 24 October 2020, 07:41:09 »
I'm to defibrillate a dead post to push my luck with RGB LED indicators.

What I'd like to do is to have one or two RGB LED indicators, specifically WS2812B, on my board with Easy AVR.
I know edfan achieved RGB backlighting on pin C  so I assume it's possible to edit the code to have this functionality on a different pin.

I have a very limited python knowledge so I'm not proficient to get there alone.
I know I'm asking much, but has anyone already tried that with success or do they feel like trying?

Thanks.

I haven't added support for that kind of RGB for two reasons.  First, I don't own any hardware with a WS2812B, so I have no way of testing.  Second, it is a large, complex job to add general support and make it configurable, and I don't have time (two small children).

It's possible that edfan's code would work with the current code base, I don't know for sure.  Adding support in a way that plays nice with the realtime schedule is a challenge.

Online TalkingTree

  • Posts: 2401
  • Location: Italy (142)
    • My projects
Re: Easy AVR USB Keyboard Firmware and Keymapper
« Reply #2541 on: Sat, 24 October 2020, 10:15:08 »
I understand, thanks metalliqaz.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff