Pages: 1 2 [3]   Go Down
Author Topic: For loops??  (Read 2913 times)
0 Members and 1 Guest are viewing this topic.
Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1285
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You are changing the 'Board' to be the 85, right? You cannot just load Uno or other code into the 85 without selecting the right libraries.

In principle there is nothing in the code that assumes a specific processor and no direct to hardware code or oher tricks are used. What can change is the speed of the processor (MHz) and how the libraries are constructed for the new device.

When I compile my version for the Uno I get
Quote
Binary sketch size: 1,436 bytes (of a 32,256 byte maximum)

If I select the 85 my IDE will not even comple the code, and I see from the datasheet that it only has 512bytes of SRAM, so the code may not even fit if it could get it to compile.
« Last Edit: December 13, 2012, 02:01:40 am by marco_c » Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmmm I wonder what I have done as it loads and runs fine on my ATtiny85.

Still trying to dissect that code and learn what each line and command does.


Andrew
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My 85 says I have 8K of space. Are there different models? Also can you guess why it is making the LED's behave inversely? They blink but stay on instead of stay off.

Andrew
Logged

Pages: 1 2 [3]   Go Up
Jump to: