Viewing a single comment thread. View all comments

ShadowDen3869 t1_j5goqz7 wrote

Can you please tell me how you programmed those rotary encoders? And also, can macros work on the knobs?

I'm trying to assign a macro to the knobs but it doesn't register for some reason.

1

Tanmay583 OP t1_j5gptsw wrote

They are programmed in Circuit python which is running on the raspberry pi pico. If you need I can send you the code for you to reference.

What kind of macros are you trying to achieve using your device and also I'd like to know what kind of device are you using for your rotary encoder?

1

ShadowDen3869 t1_j5gqmrt wrote

https://www.reddit.com/r/MechanicalKeyboards/comments/10grpnf/my_music_productiondigital_art_setup_is_finally/?utm_source=share&utm_medium=android_app&utm_name=androidcss&utm_term=1&utm_content=share_button

I'm using the Megalodon KB-16. It's got 3 knobs.

The macros i wanna program to it is a simple alt+mouse scroll up/down for zooming in and out of Photoshop.

And VIA has a code specifically for mouse wheel commands, but it doesn't register that code when i enter the macro (For example; KC_LALT, KC_MS_WH_UP). I'm not very familiar with circuit python and stuff. Or coding for that matter.

I'm a musician and an artist and use it mainly for Photoshop and music production on Cubase.

2

Tanmay583 OP t1_j5grd9t wrote

Ahh! I had actually seen this one but the price and small knobs put me off so I decided to build one myself. As for your code in VIA - what I would suggest is check if your syntax is correct and also check how similar macros are written in VIA so you can try to replicate that, I've never used VIA so can't really say for sure. Just check online how order people have written 2 key macros and you can also ask chatgpt to write you a sample code - it might just work!!

3

ShadowDen3869 t1_j5gt6z2 wrote

Yes, i used the code that VIA shows in it's UI when you hover over the virtual keys. I wrote the exact thing it shows but it still doesn't register it.

I can assign the knob to the scroll wheel, but i can't add a macro that involves the mouse scroll wheel.

2

Tanmay583 OP t1_j5gthvc wrote

Does the scroll wheel and the mouse scroll wheel do different things? I thought you were going for ALT + Scroll

1

ShadowDen3869 t1_j5guegu wrote

Sorry, for the confusion. I meant that the mouse scroll wheel function can be assigned to the knobs, no problem. But alt/control + scroll wheel as a two key macro doesn't work on the knob. It says the code is wrong even though i referred to each code for all the keys to make sure it's right.

Since you do video editing, then you know the shortcut for zooming in and out is holding down alt and scrolling up/down on the mouse. That's what I want to achieve with just one knob.

2

Tanmay583 OP t1_j5ioldp wrote

Are there any other 2 key macros which are in use in your code already? Also can you share your code? I'll have a look at it

1