marcos.placona
Senior Member
Hi, I've been playing around with a 08M's eeprom, and although everything works on my sample code, I've been trying to insert data into my eeprom dynamically (i.e. the picaxe reads from an infra red source and stores some data)
I read from the documentation that by simply using eeprom ("a_number"), it will store this data from where it was left off.
This all sounds good, but I wonder if there's any way to know where exactly on the eeprom I'm writing data.
Also, I would like to know if it's possible to detect when the eeprom is full, so I don't keep writing to it.
What I want to accomplish is:
I have a servo motor hooked to the picaxe, and an infrared sensor capturing data from a remote control.
On each key of the remote control, it will give the coordinates to my servo. i.e. 1 goes to position 75, 2 goes to position 125, 3 goes to position 225 and so on
What I would like to do, as store this infrared commands into the eeprom, and be able to repeat once all the information is stored into it, so I could run a procedure like:
1(left==75),2(middle==125),1(left==75),3(right==225),1(left==75).
Click 5 for example, which would trigger a "store" sub, that would store all that positions into the eeprom, and then run the stored procedure automatically.
I reckon that to be able to do this, I will need to know how many movements have been stored, as well as how many movements are still left to store.
Thanks in advance for any help,
I read from the documentation that by simply using eeprom ("a_number"), it will store this data from where it was left off.
This all sounds good, but I wonder if there's any way to know where exactly on the eeprom I'm writing data.
Also, I would like to know if it's possible to detect when the eeprom is full, so I don't keep writing to it.
What I want to accomplish is:
I have a servo motor hooked to the picaxe, and an infrared sensor capturing data from a remote control.
On each key of the remote control, it will give the coordinates to my servo. i.e. 1 goes to position 75, 2 goes to position 125, 3 goes to position 225 and so on
What I would like to do, as store this infrared commands into the eeprom, and be able to repeat once all the information is stored into it, so I could run a procedure like:
1(left==75),2(middle==125),1(left==75),3(right==225),1(left==75).
Click 5 for example, which would trigger a "store" sub, that would store all that positions into the eeprom, and then run the stored procedure automatically.
I reckon that to be able to do this, I will need to know how many movements have been stored, as well as how many movements are still left to store.
Thanks in advance for any help,