sdlocker-tiny icon indicating copy to clipboard operation
sdlocker-tiny copied to clipboard

Pins for ATmega

Open allenchak opened this issue 5 years ago • 0 comments

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.

allenchak avatar May 23 '19 04:05 allenchak