#Wireless High Resolution Scrolling is Am...

1 messages · Page 1 of 1 (latest)

teal charm
#

Ok. Let's pull this into a thread to make it easier to follow

#

It looks a bit like the Microsoft Surface Dial

#

Cool!

#

Where is your code at so far? Do you have it scrolling at all?

placid hatch
#

I've got the "normal" scrolling working so far, that's all though

placid hatch
teal charm
#

Yes, scrolling is its main feature

#

I think it can also zoom and do a couple other things, but no CAD integration

#

But you were going to make something cool, and who am I to stop you?

#

The dial doesn't make it easy to adjust the scroll step size

placid hatch
teal charm
#

Are you on Windows?

placid hatch
#

Also tried that but it only seemed to open this dialog

placid hatch
teal charm
#

Ok. That's the menu which selects the dial function

#

You would normally get there by clicking the dial

#

My wife has a dial but hasn't used it in a while, so bear with me

placid hatch
#

Seems like it has quite a high resolution

teal charm
#

Yeah, the docs say you can play with that value

#

So what isn't working?

placid hatch
#

Haven't really played around with that too much because I didn't know it also supported scrolling.

teal charm
#

What's your hardware like? The example expects a quadrature encoder and a button

#

If you don't have the encoder hooked up correctly, it wouldn't detect the rotations

#

You could print out the position to see

#

Probably in the if delta !=0 case so it doesn't spam unhelpful info

placid hatch
#

im trying to get it to work right now

#

i'll let you know how it goes

teal charm
#

Ok

#

Now I need to go dig up an encoder and try it out 🤔

placid hatch
#

I've gotten it to work before but it doesn't seem to be working right now

teal charm
#

Alright. Did you print out the position every time delta is not zero?

#

That would be helpful to see where the issue is

placid hatch
#

Just got a button connected for now

teal charm
#

Oh, I see. It's possible to simulate an encoder with two buttons

placid hatch
#

The button is working but nothing else seems to be happening

placid hatch
teal charm
#

Ok. You just want to see if it scrolls, before you go buy an encoder?

placid hatch
#

I'll wire up the encoder once i got the basics down

teal charm
#

Alright. set delta = 1 right above the last if

#

it will work, and probably very quickly

#

maybe a delay is in order

#

1 second, perhaps?

placid hatch
#
while True:
    if not btn.value:
        if not last_btn:
            last_btn = True
            radial_controller.press()
            print("Button pressed")
    else:
        if last_btn:
            last_btn = False
            print("Button released")
            radial_controller.release()```
I've got this code right now which should show the menu
#

also tried radial_controller.rotate() which also doesn't seem to do anything

teal charm
#

yeah, radial_controller.rotate() needs an argument of 20 or more

placid hatch
#

It's not doing anything

teal charm
#

so try radial_controller.rotate(100)

placid hatch
#

Nothing is happening

#

Well the button is working, it's being logged in the console

#

It has also been working when i tried it a few days ago

#

I'll try to restart my pc

teal charm
#

Yeah, super weird

#

That's a better solution that continually scrolling though.

placid hatch
#

Could be, the scrolling the video seemed to Work really well though

#

It's showing up in the settings atleast

#

still nothing

#

Probably just one small thing that i overlooked or something like that ._.

#

I'll try to get it to work tomorrow

#

Thanks for your help g_happy

teal charm
#

Do you actually have it on the scroll setting?

#

Maybe it’s doing something that doesn’t affect most apps

placid hatch
#

Not quite sure, radial_controller.click() should still open the menu though, right?

teal charm
#

the press? Yeah

#

I grabbed an encoder and am trying it too. Unfortunately the rotaryio.IncrementalEncoder isn't picking up my turns

placid hatch
#

I think it was working for me

#

Have you connected the right pins?

placid hatch
#

I've completely removed the device from windows and restarted my pc and now it seems to be working 😅

placid hatch
#

Connected it like this, seems to be working great