Swordfish and Basic Stamp Pbasic
Moderators: David Barker, Jerry Messina
-
- Posts: 19
- Joined: Sun Apr 09, 2017 7:07 pm
Swordfish and Basic Stamp Pbasic
What is the difference between these two?
That would help us get some traction with Swordfish.
Thanks!:)
That would help us get some traction with Swordfish.
Thanks!:)
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Re: Swordfish and Basic Stamp Pbasic
They are worlds apart.
If you take a look at the language reference http://www.sfcompiler.co.uk/downloads/SFManual.pdf
you'll see that Swordfish more closely resembles VisualBasic than it does the BASIC used on the Stamp.
The closest BASIC that 'mimics' the Stamp is melabs PBP
If you take a look at the language reference http://www.sfcompiler.co.uk/downloads/SFManual.pdf
you'll see that Swordfish more closely resembles VisualBasic than it does the BASIC used on the Stamp.
The closest BASIC that 'mimics' the Stamp is melabs PBP
-
- Posts: 19
- Joined: Sun Apr 09, 2017 7:07 pm
Re: Swordfish and Basic Stamp Pbasic
"resembles VisualBasic"
Well. I did toss out Microsoft PDS 7.0
That's the last version of Basic before Visual Basic.
" 'mimics' the Stamp is melabs PBP"
That is correct.
That's a reason we're full speed ahead with PIC Basic.
So we are looking for something familiar in Swordfish to start out with.
Is it configured with one line about PIC at the beginning of source code?
Then configuration is handled behind the scenes?
Well. I did toss out Microsoft PDS 7.0
That's the last version of Basic before Visual Basic.
" 'mimics' the Stamp is melabs PBP"
That is correct.
That's a reason we're full speed ahead with PIC Basic.
So we are looking for something familiar in Swordfish to start out with.
Is it configured with one line about PIC at the beginning of source code?
Then configuration is handled behind the scenes?
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Re: Swordfish and Basic Stamp Pbasic
No, not at all.Then configuration is handled behind the scenes?
Very little is done 'behind the scenes'. While it includes a number of libraries to do some common operations,
it's basically left up to you.
There is a free SE version that allows you to take it for a spin. It comes with several examples.So we are looking for something familiar in Swordfish to start out with.
http://www.sfcompiler.co.uk/swordfish/d ... index.html
-
- Posts: 19
- Joined: Sun Apr 09, 2017 7:07 pm
Re: Swordfish and Basic Stamp Pbasic
What lines of chip configuration are needed to get going?
Like a template?
Can I just hack one of the examples for config code?
Thanks!
Like a template?
Can I just hack one of the examples for config code?
Thanks!
Re: Swordfish and Basic Stamp Pbasic
...
Last edited by Coccoliso on Sat May 13, 2017 10:04 am, edited 1 time in total.
-
- Posts: 19
- Joined: Sun Apr 09, 2017 7:07 pm
Re: Swordfish and Basic Stamp Pbasic
"Device = 18F2682
Clock = 40"
Okay.
Can you code
main
end
Will it compile then?
Note
It looks like you coded a template.
Thanks!
Clock = 40"
Okay.
Can you code
main
end
Will it compile then?
Note
It looks like you coded a template.
Thanks!