I am getting attiny45 compilation error, what is its source?
other atmel168p does not give this error
I copied all
c:/users/my/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: C:\Users\my\AppData\Local\arduino\sketches\D6C9FAF9C18B11EEC6DB25636B99D2E1/sketch_dec8b.ino.elf section `.text' will not fit in region `text'
c:/users/my/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: region `text' overflowed by 5852 bytes
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SPI.h"
Used: C:\Users\my\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\libraries\SPI
Not used: C:\Users\my\Documents\Arduino\libraries\SPI
Using library Adafruit GFX Library at version 1.10.12 in folder: C:\Users\my\Documents\Arduino\libraries\Adafruit_GFX_Library
Using library Adafruit SSD1306 at version 2.5.0 in folder: C:\Users\my\Documents\Arduino\libraries\Adafruit_SSD1306
Using library SPI at version 2.0.0 in folder: C:\Users\my\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\libraries\SPI
Using library Wire at version 2.0.0 in folder: C:\Users\my\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\libraries\Wire
exit status 1
That library allocates 1K of RAM at runtime for a screen buffer.
The ATtiny45 has 256 bytes of RAM, I believe.
Even if you could get the library to fit in the 3K of Flash memory that remains after the non display part of your program, the program still wouldn't run because the RAM allocation for the screen buffer would fail.
You need to look for a library that:
doesn't use a screen buffer
is written with extreme program memory efficiency in mind
I'm sure I chose the cards correctly, they are all installed in my library.
Normally attiny45 works after compiling and installing the ISP editor Blink. As you said, no problem, it may have exceeded the size.
Well, I didn't think these codes took up so much memory.
Now you know. I think that the Adafruit graphics library alone is too large for the ATtiny45. The project you linked in post #5 used the Classic Nano, which has 8X the program memory.