learning SPIN
PFloyd36069
Posts: 135
Hi,
Well im fairly good at programming the BASIC Stamp. I ordered a Propeller demo board on friday, and was wondering how hard the SPIN language is to learn vs. BASIC.
Thanks,
Bryan
Well im fairly good at programming the BASIC Stamp. I ordered a Propeller demo board on friday, and was wondering how hard the SPIN language is to learn vs. BASIC.
Thanks,
Bryan
Comments
Your having used the BASIC stamp should make it an easy transition.
Give this a read while you are waiting for your kit.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange
I had a rudimentary knowledge of BASIC when I took up SPIN, it is very similar in lots of ways.
The main difference is in that is is more object orientated that a 'flat' BASIC language.
I suppose you could say it is a cross between BASIC and C.
The main hurdle for me was thinking in parallel with regard to the 8 cogs, once you have that clear you will be fine.
The best thing though is this forum, it is a great resource and there are many many great coders willing to guide you along the way.
Good luck!
Coley
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX Forums - The home of the Hybrid Development System and PropGFX Lite
One thing I'd say is don't get bogged down over Objects to start with. Think of them as sub-modules or include files ( the full details can come later ). Things like multi-Cog programming look daunting at first but get to grips with single Cog programs turning LED's on and off and it soon falls into place.
Build up your knowledge incrementally rather than trying to understand all that is Spin in one go and you should be successful. I'd personally recommend not looking at other people's code too much to start with as that can be daunting ( it was for me ). Dive in too deeply and you may flounder but it becomes a lot more understandable once your basic knowledge is off the ground.
As far as objects I think of them as subroutines. The nice thing is instead of one giant file you have several small files each with its own purpose. Objects allow you to write code once then reuse it over and over in other projects...which is a lot better than trying to remember what project you wrote some code in and then copy/paste into your new project.