Shop OBEX P1 Docs P2 Docs Learn Events
It is time for me to learn some spin code >>>>>>>>>>>>>> — Parallax Forums

It is time for me to learn some spin code >>>>>>>>>>>>>>

sam_sam_samsam_sam_sam Posts: 2,286
edited 2010-04-27 17:02 in Propeller 1
·I have just been layoff from my job and now have·lots of time to learn something new

I was lay off from another job 20 months ago and when that happen >>>>>

·I send allot of time learning P-basic coding for the Basic Stamp and it helped in this last job the one·just got layoff from

I want to start at the being Step # 1 >>>> ·I have not·done any Spin· coding before

Where do I begin·I am looking for some one to guide me a·long the·way and point in the right direction
any taker

I want to thank·any one willing to do this for me

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

·
·
·
·
Sam

Post Edited (sam_sam_sam) : 4/18/2010 12:02:57 AM GMT

Comments

  • JonnyMacJonnyMac Posts: 9,208
    edited 2010-04-17 20:17
    www.parallax.com/Store/Books/Propeller/tabid/171/CategoryID/45/List/0/SortField/0/Level/a/ProductID/541/Default.aspx

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-04-17 20:44
    Jon

    Thanks for the info

    ·I just down load the pdf and printed the other day and this was one of the thing I was going to work on

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam

    Post Edited (sam_sam_sam) : 4/18/2010 12:03:48 AM GMT
  • bill190bill190 Posts: 769
    edited 2010-04-18 04:46
    You do have a Propeller chip?
  • w8anw8an Posts: 176
    edited 2010-04-18 04:52
  • Mike GMike G Posts: 2,702
    edited 2010-04-18 13:39
    Propeller manual
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-04-18 16:16
    I want to Thank every on that reply to this post



    Bill190

    Yes I do have a Propeller chip

    Mike G

    I will read that on line

    w8an

    I have the software already on my computer and have ran the first example just to make sure the prop sticks worked

    StefanL38

    I was think about get that book as well

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam
  • bill190bill190 Posts: 769
    edited 2010-04-18 17:23
    Something like the following to just turn on/off an LED is a good start...

    PUB LedOnOff

    ··· dira[noparse][[/noparse]0] := 1
    ···
    ··· repeat
    ······· outa[noparse][[/noparse]0] := 1
    ······· waitcnt(900_000 + cnt)
    ······· outa[noparse][[/noparse]0] := 0
    ······· waitcnt(900_000 + cnt)

    The above·just·flashes pin·0 high/low, then repeats.

    Just look up each command in the editor search like PUB, dira, outa, etc.

    Then try switching this from pin·0 to say pin 4. And be sure to follow the directions to use the appropriate resistor in series with the LED.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-04-18 18:15
    bill190

    I will try this latter today or Monday for sure thank for your reply

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·Now wanting to learn Spin· Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-04-27 01:54
    I start today with the Propeller Education Kit Labs

    ·With the Propeller Professional Development Board that·came in the mail today

    The hardest ·part to get use to is the fact that you have indent your code I am not use to this

    I·am get some where with labs though· the first lab almost made me put it down because of so many error that·I was having writing the code

    I am not copy and pasting the code which would be easier but I would· not learn as much




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·Now wanting to learn Spin· Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam

    Post Edited (sam_sam_sam) : 4/27/2010 2:07:50 AM GMT
  • bill190bill190 Posts: 769
    edited 2010-04-27 02:18
  • iQuitiQuit Posts: 78
    edited 2010-04-27 05:48
    sam^3,

    I also have just started learning spin. I used to work with the BS2 a lot. I once started to teach myself Java, but didn't get very far.
    Spin is object oriented, like Java, so I kind of had a clue.
    The manual and the official guide are both good. This site is good also for getting questions answered.
    I haven't gone through the labs as of yet, but will soon. I'm putting together a project now, and just jumped right in. Lots of fun. And,
    a great way to learn. Trial and error is a great teacher.

    I purchased the demo board, but just purchased the professional dev board. Should have got it from the start. The demo board has
    limited pins available for connections.

    Hope this helps some, Dan smilewinkgrin.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "She may not be very pretty now, but she was somebody's baby once." Bugs Bunny
  • max72max72 Posts: 1,155
    edited 2010-04-27 12:24
    Check also the obex.
    obex.parallax.com/
    You'll find a lot of available code, and some demo code showing how the object works.

    You can learn a lot reading other people's code.

    Start with something easy.....

    Massimo
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2010-04-27 17:02
    sam_sam_sam

    If you have the Propeller Tool Software v1.2.7 or higher, you have these things built into the Help file:

    "Spin Programming Tutorial" - open the Help and look the TOC on the left. This tutorial was written for the Propeller Demo Board. As you use the arrows to navigate through the tutorial, you will see little hat icons above the code listings. Click on them, and the code will open in the Propeller Tool.

    PE Kit Labs Fundamentals: The tagged PDF is bundled in the Help, you can open it from the Help drop-down menu in the Propeller Tool editor.
    All the example code for the PE Kit Labs: it is in the Library subfolder. Choose File >Open From to see all your resources.

    Propeller Manual: The tagged PDF is also bundled with the Help, and can be opened from the drop-down menu.

    Have fun!

    -Steph

    Edited to add: More resources and activities for the PE Kit are all listed in one place now: http://www.parallax.com/go/PEkit

    Post Edited (Steph Lindsay (Parallax)) : 4/27/2010 5:07:33 PM GMT
Sign In or Register to comment.