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

DDR and PORT take it from config #1

Open
zaher opened this issue Jun 20, 2016 · 3 comments
Open

DDR and PORT take it from config #1

zaher opened this issue Jun 20, 2016 · 3 comments

Comments

@zaher
Copy link

zaher commented Jun 20, 2016

About line #138 in UsbKeyboard.h

    PORTD = 0; // TODO: Only for USB pins?
    DDRD |= ~USBMASK;

Replace it to take the port name from the usbconfig.h with this lines

    USBOUT = 0; // TODO: Only for USB pins?
    USBDDR |= ~USBMASK;

But not sure about it, not tested yet.

@gloob
Copy link
Owner

gloob commented Jun 21, 2016

Hi @zaher! Thanks for reporting it, which is the issue that you are experiencing?

@zaher
Copy link
Author

zaher commented Jun 21, 2016

Yes, There is no PORTD in Attiny85/45, but there is PORTB
AtTiny programmers fixed it manually, while we can put USBOUT instead, it is a marco to redefine it depend on the ports in usbconfig.h

Find in https://nathan.chantrell.net/20121014/tinypcremote-an-attiny85-based-infrared-pc-remote-control/#comment-390414
"Finally, in UsbKeyboard.h change:"

@zaher
Copy link
Author

zaher commented Jun 23, 2016

I tested it on AtTiny85, with PortB in usbconfig.h, and it works fine.

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