Hi, I'm having this very strange problem. I'm working on a project with a 4 digit 7 segment display using a MAX7219 IC.
I was using the LedControl library on an Arduino and all was fine but, switching to the ATtiny the setDigit function will make the microcontroller not work at all.
This only occurs with setDigit as far as I can tell, for instance, the LCDemoMatrix sketch runs fine but the LCDemo7Segment one wont.
I've tracked it down to the last two lines of the function in the library file:
Thanks, you're probably right! I'd never have thought of that. You mind telling me how you got that memory usage report so I can try to reduce the library so it will work?
vascofg:
Thanks, you're probably right! I'd never have thought of that. You mind telling me how you got that memory usage report so I can try to reduce the library so it will work?
Use the "avr-size" command on the command line.
[arduino installation folder]\hardware\tools\avr\bin\avr-size.exe -C --mcu=attiny45 [your .elf file name here - find it in your 'temp' folder]
vascofg:
Thanks, you're probably right! I'd never have thought of that. You mind telling me how you got that memory usage report so I can try to reduce the library so it will work?