Wee Basic 0.3 – now you can use both screens and stylus!

version 0.3

fixed:

– editor: return key swallowing a character
– editor: hopefully fixed remaining save bugs

added/changed:

– basic programs now have access to both DS screens and stylus input
– hide or show keyboard with commands ‘keyhide’ and ‘keyshow’
– you must hide the keyboard before printing to, or using graphics on, the bottom screen
– cls, print, plot and line can now be used on both DS screens. You must specify a screen number. Syntax is now (s= screen number 0 or 1):

print s [at x,y] <string or variable>
plot s x,y,colour
line s x1,y1,x2,y2,colour
cls s

(s = screen number 0 or 1)

– stylus coordinates can be obtained using stx() and sty()

eg, let sx=stx() let sxy=sty()

– check whether bottom screen has been touched with stt()

eg, let touched=stt()
stt() returns 1 for touched and 0 for not touched

– new example showing the above features

free to download: wee03.ppt (change ppt extension to zip before opening)

Advertisements

14 thoughts on “Wee Basic 0.3 – now you can use both screens and stylus!

  1. Putzpie, I come from the future – all of the stories here are non-fiction. Alternatively, I’m just in another part of the world.

  2. The input command seems to have a problem.
    1. it masks the print commands that preceed it
    2. it requests the same input twice (two times)

    other than that – GREAT Keep up the good work – I program custom applications in B.A.S.I.C.

  3. welcome wee basic !

    i need to see all codes for the wee basic

    specialy sound and microphone editor

    ex

    10 microphone = a$
    20 rec on
    30 play a$,level,chanel
    40 on key = A then rec off: end
    50 goto 30

    SAY ” microphone !”

  4. zomboula, I haven’t implemented any microphone codes yet, but I’ll put it on my list of things to do. Also Wee Basic doesn’t use line numbers, but you can use labels. For example:

    lab hello:
    print 1 “hello”
    goto hello:

    Look at the keywords document that I posted.

  5. zomboula, I haven’t got any microphone code yet in WB but I’ll give it some thought. Just working on a few other things at the moment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s