Shop OBEX P1 Docs P2 Docs Learn Events
Help with code — Parallax Forums

Help with code

maadmaad Posts: 28
edited 2011-04-08 19:23 in BASIC Stamp
Will you help me complete the code?, I want to store the data coming from the serial port with SERIN and put it in EEPROM memory

SevenBit CON $2000
Inverted CON $4000
Open CON $8000
Baud CON Open + T9600



Prompt CON ">" ' prompt from HP driver
STX CON 2 ' start of text
ETX CON 3 ' end of text
Esc CON 27 ' escape


'
[ Variables ]


X VAR Byte

'
[ EEPROM Data ]
SERIN 16,baud, [DEC X]



msg1 DATA STX," I want to store the number from serin right here ",ETX

Comments

  • Mike GMike G Posts: 2,702
    edited 2011-04-08 18:06
    See the READ and WRITE commands in the STAMP manual.

    This snippet stores the byte value "X" in EEPROM address 100.
    WRITE 100 X
    
  • maadmaad Posts: 28
    edited 2011-04-08 19:23
    I'll check it, thanks
Sign In or Register to comment.