Journaling on estrip is easy and free. sign up here

Paul's Journal

paul
My Podcast Link

01/26/2005 18:57 #31607

This is the stupidest language ever
I started writing this all to basic code. I hate it no functions, no classes, no strings as far as i can tell. You can't even have an if statement assign a value. it can only run a loop. At first I thought that it would make it easy. It just makes it way harder as I started out with functions and OOP. I don't think I ever want to use a basic stamp after this. maybe t's just beginner irritation.

Yes that is a Virgin Mary candle in on my computer desk. (e:matthew) just got it for me. I think it is helping my basic stamp.

image

The simple serial joystick code I wrote

' {$STAMP BS2}
DEBUG "code start", CR

INPUT 12
INPUT 13
INPUT 14
INPUT 15
up VAR Bit
down VAR Bit
left VAR Bit
right VAR Bit

upcount VAR Byte 'keep tabs on # of times up was pressed
downcount VAR Byte 'keep tabs on # of times down was pressed
leftcount VAR Byte 'keep tabs on # of times left was pressed
rightcount VAR Byte 'keep tabs on # of times right was pressed

Index VAR Nib ' Define normal nibble variable.

test:
'reset values for next test loop
up = 0
down = 0
left = 0
right = 0

uploop:
IF IN12 <> 1 THEN downloop
up = 1
upcount = upcount + 1

downloop:
IF IN13 <> 1 THEN leftloop
down = 1
downcount = downcount + 1

leftloop:
IF IN14 <> 1 THEN rightloop
left = 1
leftcount = leftcount + 1

rightloop:
IF IN15 <> 1 THEN printloop
right = 1
rightcount = rightcount + 1

printloop:

IF up + down + left + right = 0 THEN nothing_pressed 'don't print anything because nothing is being pressed
DEBUG "total ", ? upcount
DEBUG "total ", ? downcount
DEBUG "total ", ? leftcount
DEBUG "total ", ? rightcount
PAUSE 200 'pause before next pole
IF upcount > 15 THEN winloop 'if the user pressed up 15 times then go to the winning loop

GOTO test

nothing_pressed: 'nothing is pressed try again, don't bother pausing
GOTO test

winloop:
DEBUG "You won by pressing the up button 15 times"
END

END

01/26/2005 04:29 #31606

School is Really Tedious
All of this preparing to graduate is starting to be more work than the actual academic work. I finally got all of my syllabi togther. i decided to start cataloging everything online to keep it safe. I scanned everything I had from school tonight and uploaded. Now if I ever need copies of anything I can simply grab them off the web. I think everyone should start digitalizing their life. It is definately way more fireproof than paper.

01/26/2005 02:34 #31605

Thanks for making me feel good
(e:twisted) wrote this a while back. She has really been an inspiration into my continued work with online cmmunity development. Thanks for being there.

image

01/26/2005 01:49 #31604

Old journal Entry from me
Jan 6, 1986
NASA seems to follow the saying, "if first you don't success try again, again,again, and again. So, Columbia will try again tomorrow. Let's hope!

President reagan has asked for economic sanctions against libya, and has told americans in Libya to come home soon as possible.


01/26/2005 01:01 #31603

Collecting
I collect laptops. I also used to collect woman. (e:hodown) was one of them. hahaha