Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missconfiguration on Mega Client definition? #14

Open
mikebrandt opened this issue Nov 14, 2021 · 5 comments
Open

Missconfiguration on Mega Client definition? #14

mikebrandt opened this issue Nov 14, 2021 · 5 comments

Comments

@mikebrandt
Copy link

Hi,
tried to make iona work for Mega 2560 and i think there's a missconfiguration on MegaClient:
// Data+: 2 PD2 ( RXDI/INT2 )
// Data-: 3 PD3 ( TXD1/INT3 )
using MegaDataClient = BaseDataClient<0, 1, 0, 1, 0x0e, 0x0e>;

In that setting , Data + seems to be assigned to PD0 and Data - to PD1.
Am I reading it wrong?

Best regards,
Mike

@toyoshim
Copy link
Owner

Thank you for your feedback.
I actually provided the Mega Client, but I haven't gotten a chance to verify my code with a device.
So, there would be some bugs.

Regarding the MegaDataClient, I think the comment was wrong.
Maybe I copied it from another port, and just forgot to modify the comment.
Let me have a fix.

@toyoshim
Copy link
Owner

Can you try the latest version?
Now the comment was fixed. We use D0/D1 (== PE0/PE1 or RX0/TX0) for Data+/Data-.
Also, I notice that P2 button 5 and 6 were mistakenly assigned to non-existing GPIO pins.
So, I changed it to use D2 and D3.

Please let me know if something is still wrong.
Thanks!

@mikebrandt
Copy link
Author

Hi,
just tried it with last version , wired data + on D0 and data - on D1 (sense still on D9). No input is sent to the mobo (TTX3) while it works great with nano version. Are you sure about register adress on Mega Client? those values shouldn't be different between nano and Mega . From what i understand, it should be 0x0b according to documentation.
Best regards,
Mike

@toyoshim
Copy link
Owner

hum... here, D0 mean Digital 0, and actual port is PE0, Port E bit 0. So address 0x0e should be correct. let me check again.

@mikebrandt
Copy link
Author

Hi, i think you're right:
PIN MAPPING ARDUINO MEGA
so problem must be elsewhere, i'll try to serial debug it to see what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants