Need help in using SPIN language and libraries
Ashar748i
Posts: 1
Hello,
Im new in using SPIN, I am working on a project using Propeller but dont have the time to thoroughly learn the SPIN language. So I was wondering if any one can give me any information on how to get a quick hold of the SPIN language and how to use the various libraries.
Thank you.
Ashar748i
Im new in using SPIN, I am working on a project using Propeller but dont have the time to thoroughly learn the SPIN language. So I was wondering if any one can give me any information on how to get a quick hold of the SPIN language and how to use the various libraries.
Thank you.
Ashar748i
Comments
Getting multiple cogs to work together can be a trick when you're first learning how to use the Propeller. I regret not asking more questions when I was first learning to program the Propeller.
When you post code, use the Propeller Tool's archive feature. File | Archive | Project...
You can also post small sections of code within the text of your post. To display code use the code tags: [ CODE] your code here [ /CODE]
Code entered with the tags will look like:
Which is much easier to read than:
if eepromIndex == 0
eepromIndex := _EepromBegin
Eeprom.FromRam(@eepromIndex, @eepromIndex + 3, @eepromIndex)
eepromFlag := 0
I had to add a space to the tags to make them visible. Leave the spaces out when you use the code tags.
Without using code tags the indentation is lost. As you probably already know, indentation with Spin is very important.
I think, and most on this forum will agree, the Propeller is an amazing microcontroller. It's really the best uC for hobbyists (IMO). The Prop's ability to run multiple processes at once makes writing code both easy and fun.
Duane
I highly recommend reading the Fundamentals book from the Propeller Education Kit thread:
http://forums.parallax.com/showthread.php?89958-Propeller-Education-Kit-Labs-Tools-and-Applications