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

Pins for ATmega #4

Open
allenchak opened this issue May 23, 2019 · 0 comments
Open

Pins for ATmega #4

allenchak opened this issue May 23, 2019 · 0 comments

Comments

@allenchak
Copy link

Actually it is not an issue but a comment to support ATmega.

Tested: ATmega328p & Arduino Nano 3.0
Should also work: ATmega8/48/88/168/328
Or Arduino UNO, Nano, Pro Mini

Revise the file "sdlocker-tiny.cpp" line 121 - 124 & 135

#define MOSI_BIT 3 //Arduino D11
#define MISO_BIT 4 //Arduino D12
#define SCK_BIT 5 //Arduino D13
#define CS_BIT 2 //Arduino D10

#define LEDSW_BIT 1 //Arduino D9

Copy whole code (File: sdlocker-tiny.cpp) to Arduino IDE, revise the lines, select the board, and upload. Cheers.

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

1 participant