It is currently Thu May 23, 2013 12:30 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Mon Jul 26, 2010 7:19 am 
Offline
Moderator
Moderator
User avatar

Joined: Sun Mar 28, 2010 9:03 pm
Posts: 699
Location: United Kingdom
Quote:
Now the reason that it worked for you when you took out that extra and statement about the button_delay is because of my previous error.

What is supposed to happen is that you press the button, it loads up a variable with the number 50. then it wont let you press a button again untill that variable has gone all the way back to 0 again. but because I was using the incorrect variable name, I was never actually decrementing this variable which therefor meant it would never get to 0 and you could never inc or dec the speed.

so if you ow use the above fixed code, it should work much better


Now that you have explained to me how it works I can see the mistake hehe!, I was checking my breadboard and switches thinking I must have something wired wrong and then sat there and could'nt work it out haha.. so i just deleted the bit of code in the end!! :D but its a cool bit of code to learn and mess around with :)

I like the bit of code toggle(LED) thats a great command :D

Brad is there a tutorial about swordfish basic apart from looking on digital.diy? like all the commands you can use and what they do or mean?.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 26, 2010 12:35 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
Great! I am glad we got that sorted :)

See how much better it is to use basic rather than ASM?

It is much more fun to use.

You can have a look at the swordfish forum over at http://www.sfcompiler.co.uk

But I have learned so much from http://www.digital-diy.com especially from the example code and in the forum.

Now when I get a bit of time (maybe tonight?) I will look into that 24 x 24 code.

The drawing part of the display should be quite a compact piece of code which will consist of a few 'for next' statements which will allow it to loop through drawing one column at a time.

stay tuned for some fun!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 26, 2010 7:28 pm 
Offline
Moderator
Moderator
User avatar

Joined: Sun Mar 28, 2010 9:03 pm
Posts: 699
Location: United Kingdom
I cant wait :D better get my circuit made up later..


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme made by Keenen Wheeler