Go Down

Topic: EEPROM (Read 1 time) previous topic - next topic

baum

In theory, could I load a VERY small program into the EEPROM, and then, at a certain point in my code, load the program?

Ex.
I run my very complex program until a button is pressed. The arduino then loads this program:

Code: [Select]
void setup() {}
void loop() {}


(It's my null program, it does nothing and takes up 450bytes of space.)

Coding Badly


Why would you want to do that?

baum

Quote
[glow]In theory,[/glow] could I load a VERY small program into the EEPROM, and then, at a certain point in my code, load the program?


I never said I did.

mowcius

It would be completely pointless... In theory you could make a cannon which fired toasters - not a lot of point to it.

You are better off just making them different looping functions and having the button as an interrupt to run some code to switch between them  ;)

billroy

Programs in EEPROM?  No problem: http://bitlash.net

;)

-br
http://bitlash.net
http://entropymouse.com

baum

Quote
Do you just pull these ideas at random out of thin air?


Yes, I did. I pressurized the air in my house and put into a sealed flask with this:
http://www.sparkfun.com/products/10221
As the air evaporated, the levels were fed from the sensor to my arduino, which output the data as ASCII.

PaulS

Quote
Yes, I did.

Good thing you told us. I was beginning the think you'd pulled them from somewhere else.  ;)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy