Just received the TripleSlider and Encoder modules in the mail today, and trying to write up a quick and dirty demo, but I can’t seem to find the API for the Encoder interrupt or direction. There are ButtonPressed and ButtonReleased events that you can handle, and an IsPressed property, but that seems to be it.
Am I missing something? Can you show some sample code on reading the encoder (i.e. handling when the encoder is changed)?
Now thats just weird.
I opend the project up for this driver and i see the same file as you are refering to ( the standard template for a driver module ),
then I go to the folder and open the EXACT SAME FILE and I see the correct driver that I wrote…
Just bizzare…
Anyway the updated driver will up on my site shortly.
Sorry about my forum, it looks like my silly webhost keeps swapping servers around and messing up my site…
I’m assuming the GHI guys dont want SolderMonkey support on their forums…
Just as a heads-up, it would appear that the Encoder is not the only driver with this issue. For testing purposes, I dropped a LittleStep onto the designer surface, and checked the driver API in the object browser, and found the same API as the Encoder.
Hopefully, once the updated SDK is up on your site, I can find some time (perhaps over the weekend) to make a quick video of the demo project I put together.
I went through and checked all of the modules for consistency from 4.1->4.2 and found a couple of typos and bad function/enum names here and there.
Check it out see if I missed something else.
@ Gus - Just shout if you want us to keep this off your forums. And thanks for the great collaboration space
Got the new SDK, and the encoder works a treat. Was thrown a bit with the TripleSlider, as it looks like the API for that was renamed, but got it working in just a few minutes.
Now I have my blinkies with RGB faders and an encoder to determine how many LEDs are lighting. Will do a demo video and post it over the weekend.