i want the basic project of arduino with full programmming
i want the basic project of arduino with full programmming
Using the registers on the micro and compiling to 666 bytes. NICE :-)
EDIT: Using _delay_ms(); we can get it down even smaller but I still like the 666 bytes compile
#include <util/delay.h>
void setup() {
DDRB = DDRB | B00100000; // set pin 13 to output
}
void loop() {
PORTB = PORTB ^ B00100000;
_delay_ms(1000);
}Binary sketch size: 494 bytes (of a 32256 byte maximum, 1.53 percent).
i looked for a lower level delay function but could not find it, well done 
I will keep a mental note of that call for future
As a beginner of course people will take the first approach but even in this simple demo is shows that when the memory starts to get constrained there are ways of significantly getting it back
we reduced a >1234byte program by 2/3rds (494 bytes) which is awesome if you think about it.
Peter
i looked for a lower level delay function but could not find it, well done 
I will keep a mental note of that call for future
As a beginner of course people will take the first approach but even in this simple demo is shows that when the memory starts to get constrained there are ways of significantly getting it back
we reduced a >1234byte program by 2/3rds (494 bytes) which is awesome if you think about it.
Peter