othermod / I2C-Linux-Gamepad-using-ADS1015-ADS1115-and-MCP23017

https://othermod.com/analog-joystick-on-retropie/
13 stars 5 forks source link

Changing to a ADS1115 instead of ADS1015 #3

Open TimGreerNZ opened 1 year ago

TimGreerNZ commented 1 year ago

Hi,

How hard would it be to change the code for the ADS1015 and make it the ADS1115. I'm thinking possibly just a find and replace 1015 with 1115 should do the trick?

Any thoughts on this?

othermod commented 1 year ago

Not super hard, but definitely not as easy as replacing the chip name in the code. The data coming from the 1015 is slightly different than the 1115, and the math needs to be adjusted. I'd love to add the code for it, but unfortunately life is kicking by butt right now and I don't have the time to do it.

othermod commented 1 year ago

@TimGreerNZ I made some changes to the code, and it should work with both the ADS1015 and ADS1115 now. I bought some ADS1115s to test with, but they ended up being fake chips. If you're able to test this and let me know if it works, I would appreciate it.

TimGreerNZ commented 1 year ago

Sweet as I will grab the code and give it a test out. Do you have a patreon or so.thing so I can buy you a coffee 😁

Get Outlook for Androidhttps://aka.ms/ghei36


From: othermod @.> Sent: Friday, May 19, 2023 1:50:48 AM To: othermod/Analog-Digital-I2C-Gamepad-on-Linux @.> Cc: Timothy Greer @.>; Mention @.> Subject: Re: [othermod/Analog-Digital-I2C-Gamepad-on-Linux] Changing to a ADS1115 instead of ADS1015 (Issue #3)

@TimGreerNZhttps://github.com/TimGreerNZ I made some changes to the code, and it should work with both the ADS1015 and ADS1115 now. I bought some ADS1115s to test with, but they ended up being fake chips. If you're able to test this and let me know if it works, I would appreciate it.

— Reply to this email directly, view it on GitHubhttps://github.com/othermod/Analog-Digital-I2C-Gamepad-on-Linux/issues/3#issuecomment-1553088019, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2ASAGKKM6W2I2SQOQ4YQNDXGYSLRANCNFSM6AAAAAAVIYKHPE. You are receiving this because you were mentioned.Message ID: @.***>

othermod commented 1 year ago

@TimGreerNZ I have a few donation links here: https://linktr.ee/othermod