Equip your Genius
Welcome to the Parallax Discussion Forums, sign-up to participate.
Learn with BlocklyProp
P2 Hosted USB Keyboard/Mouse
2019-12-30 - 17:45:03
Ah, thank you for your last post Roger -- I think that's the clue I needed to find the problem. I think this is a fastspin bug, and it comes up only in a very specific circumstance: when a Spin function which uses no member variables (VAR) calls coginit/cognew to run a Spin function which itself does access member variables (as mouseinit does in this case). By adding the "@usbA" you made the "start" method access a VAR, which fixed the problem. A similar result would have come from moving the usbstack array from DAT to VAR (which is a more common place for it, and the reason this bug hasn't shown up before -- most users of coginit either use a stack defined in VAR or set a cog variable in VAR).
Here's a version of fastspin which has that particular issue fixed. I hope it'll fix your problem.
2019-12-30 - 20:05:05
That looks to have resolved the issue, Eric.
2019-12-30 - 23:11:06
. I will take your word for it for now. That zip file only contained a windows binary of fastspin that I couldn't try out on my Mac. I can wait for the next release and use a workaround for now.
2020-02-10 - 15:22:42
Barely worth mentioning, but I was surprised that this cheap old mouse didn't work.
Same part number as this one:
This is one that came with an HP computer bought new back in 2015.
I think this might be the first one I tried that didn't work...
This even older: Logitech MouseMan Dual Optical USB Mouse M-BL63B
Seems to work just fine...
2020-02-10 - 21:42:08
When Eric drops a binary like that, you can be pretty sure the master branch on Github is the same code. Just do a "git pull" then "make".
2020-02-10 - 22:51:20
LOL. Is that a subtle hint for me to retest...evanh ?
When I get a chance I can try to resurrect that USB gfx+mouse demo issue I had. I have a much newer fastspin anyway now since I decided to update the tools and resolve the loadp2 issue etc.
2020-02-10 - 23:08:48
Ah, just misunderstood.