Shop OBEX P1 Docs P2 Docs Learn Events
storing variables — Parallax Forums

storing variables

smkbaynsmkbayn Posts: 25
edited 2006-10-10 21:17 in BASIC Stamp
is it possible to store a variable somewhere where i will not lose it when i lose power on the bs2?

Comments

  • Kevin WoodKevin Wood Posts: 1,266
    edited 2006-10-07 21:04
    See the READ and WRITE commands in the Stamp IDE help file.
  • smkbaynsmkbayn Posts: 25
    edited 2006-10-10 21:15
    ok, thanks, very helpful.· now is there a way to directly read what is in that location of eeprom.· say if i store it in location 100 as in the example in the basic manual,· can i use a debug command to see it?



    smk
  • Mike GreenMike Green Posts: 23,101
    edited 2006-10-10 21:17
    The READ statement reads the contents of the eeprom location into a PBasic variable. You can do anything with it at that point, do a calculation, perform any kind of I/O on it, etc.
Sign In or Register to comment.