Shop OBEX P1 Docs P2 Docs Learn Events
Newbie Question about a program — Parallax Forums

Newbie Question about a program

ArchiverArchiver Posts: 46,084
edited 2004-03-25 16:53 in General Discussion
I am just getting started with the BASIC Stamp, so i got a copy of Al
William's "Microcontoller Projects Using the BASIC Stamp". The first
program that I attempted to write deals with the DEBUG function. I
copied the two line program right out of the book and it didn't work.
the code reads:

DEBUG Hello Stamp Programmer!
END

When i typed that in, i got multiple errors saying that "!" was an
unrecognizable character.

If you need to know, i am using a BS2, and using the Stamp software
that came with the book: Basic Stamp Editor v1.3

Thanks for any help with this problem,

jason

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-25 16:53
    The fix is easy: put your string in quotes:

    DEBUG "Hello BASIC Stamp Programmer!"
    END

    Be sure to download the latest version of our compiler from
    www.parallax.com. It's free.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: Jason Davis [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=RUGRmRjNREHv9Ng8X8v3iqVm-JVRMFVTpIb2x0VL4Q3zYSZliB1SQhkIeT-SyVT4tsEe61mc8GY]kc8cvf@y...[/url
    Sent: Wednesday, March 24, 2004 9:22 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Newbie Question about a program


    I am just getting started with the BASIC Stamp, so i got a copy of Al
    William's "Microcontoller Projects Using the BASIC Stamp". The first
    program that I attempted to write deals with the DEBUG function. I
    copied the two line program right out of the book and it didn't work.
    the code reads:

    DEBUG Hello Stamp Programmer!
    END

    When i typed that in, i got multiple errors saying that "!" was an
    unrecognizable character.

    If you need to know, i am using a BS2, and using the Stamp software
    that came with the book: Basic Stamp Editor v1.3

    Thanks for any help with this problem,

    jason
Sign In or Register to comment.