EasyManua.ls Logo

Parallax BASIC Stamp 2e - Page 334

Default Icon
353 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WRITE - BASIC Stamp Command Reference
Page 332 BASIC Stamp Programming Manual 2.0b www.parallaxinc.com
NEXT
Demo Program (WRITE.bs2)
' This program writes a few bytes to EEPROM and then reads them back out and displays
' them on the screen.
'{$STAMP BS2} 'STAMP directive (specifies a BS2)
ValAddr VAR BYTE
Value VAR BYTE
WriteItOut:
WRITE 0, 100 'Write some data to location 0 through 3
WRITE 1, 200
WRITE 2, 45
WRITE 3, 28
ReadItOut:
FOR ValAddr = 0 TO 3 'Read all four locations and display the
READ ValAddr, Value 'value on the screen
DEBUG ? Value
NEXT
2
e
2
sx
2
p
2
NOTE: This is written for the BS2
but can be used for the BS2e,
BS2sx and BS2p also. Locate the
proper source code file or modify
the STAMP directive before
downloading to the BS2e, BS2sx or
BS2p.

Table of Contents

Related product manuals