![]() |
Forum Index : Microcontroller and PC projects : CMM2: If you want a mouse
![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
Just send the appropriate I2C command once the mouse is open. The relevant I2C port is open and available once the CONTROLLER MOUSE OPEN command is used |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2950 |
Hi Peter, All, It took a while to sink into my brain but I finally worked it out (after selecting the correct I2C port No.) I can control the speed now to make the "GigaByte Aire M58" mouse more manageable. The command syntax is I2CX WRITE 41, 1, 2, 28, 10 And is placed on the line AFTER the CONTROLLER MOUSE OPEN command The Red X is which I2C port you want (I needed I2C3 for port 3 --- shared with nunchuck) the Blue 10 is speed value between 1 (Very slow) and 10 (Fastest). Thanks Peter, Kind Regards Mick Edited 2020-12-11 12:37 by bigmik Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
mclout999 Guru ![]() Joined: 05/07/2020 Location: United StatesPosts: 490 |
I was wondering about your progress on the classic mouse and updating it to use the new functions of 5.06.00. I finally have cobbled together the parts to try to get mine working(almost none of the parts from china has arrived after over 2 months) and was wondering if I should wait for the update. Thanks very much. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Good timing! I have solved a few issues I was having and am now very happy with the firmware (considering I know sod-all about C programming). It works the same as the updated HT device so I am happy to release the update. I have been adding joysticks to the mix and was about to redo the instructions. By adding a switch, 4 resistors and a DB15 port, you can now use PS2 mouse or joystick with the same firmware. HT_mouse1.zip I will update the instructions soon, hopefully today but the original instructions should work with the updated firmware with no changes. You will just have to hold off on using a joystick. I would use a breadboard for now until you see the extra wiring. Jim VK7JH MMedit |
||||
mclout999 Guru ![]() Joined: 05/07/2020 Location: United StatesPosts: 490 |
Thank you so much for this wonderful addition to the CMM2. I was planning on using a tiny breadboard that just fits the NANO so that is good. The joystick option makes this a very valuable and useful solution. I am feeling a little trepidation about making my first NANO project. This is new territory for me and I fear I will burn out my beautiful CMM2. I think I have a PS2 extension cable that I can sacrifice to get a DB15 port (you do mean a PlayStation 2 I am assuming for that mouse on the DB15, right?) That PS2 abbreviation can get confusing when talking about this device. Oh, wait with that switch you mean it works with either a PS2 (PC PS2) or a joystick? I think I am confused about what you are talking about. Sorry. Thanks for indulging a Hardware NUBE like me. OK, I just went and got a Playstation 2 controller, and NOW I KNOW THAT IS NOT WHAT YOU ARE TALKING ABOUT. You mean a DB15 like on an old PC joystick port or am I still not getting it. Oh well, I will just focus on the PS2 mouse for now and wait for you to outline how to implement the Joystick. Thanks once again. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
In this situation PS/2 stands for Personal System/2, the name of the IBM computer that first had the PS/2 connectors. The DB15 connector is the one that the early Personal Computers used for their joystick. It has two rows of pins. Not to be confused with the DB15HD connector that the VGA uses which has 3 rows of pins. I haven't got as far as doing the wiring for an Atari style joystick but the firmware should work as supplied. I will update the original thread later today. Jim VK7JH MMedit |
||||
mclout999 Guru ![]() Joined: 05/07/2020 Location: United StatesPosts: 490 |
Thanks Jim. The / in PS/2 makes it clear but most people use just PS2 for both, I read a lot of posts on retro gaming. Not sure where to get a Joystick DB15 connector from. I guess I will have to go to FleaBay but I have not been getting any of the parts I have ordered of late for over 2 months. I am modding a Gotech FDD emulator for one project and none of the parts have arrived and the vendors are jerking me around so I am not sure what the future of using Chines parts will look like. I have 9 parts orders and all are in dispute to get my money back. Anyone else having the same issues? |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
First, you need the joystick then whatever connector your particular joystick uses. Jim VK7JH MMedit |
||||
mclout999 Guru ![]() Joined: 05/07/2020 Location: United StatesPosts: 490 |
I2CX WRITE 41, 1, 2, 28, 10 And is placed on the line AFTER the CONTROLLER MOUSE OPEN command The Red X is which I2C port you want (I needed I2C3 for port 3 --- shared with nunchuck) the Blue 10 is speed value between 1 (Very slow) and 10 (Fastest). This info should be included in the user guide in the mouse open section. I can not find this anywhere else. I will need this when I finally get mine working. Thanks, Mick for doing the work on this one. |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
That information is available on their website and more if you need it. Bill Keep safe. Live long and prosper. |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |