Shop OBEX P1 Docs P2 Docs Learn Events
S2 — Parallax Forums

S2

In my beginner classes, we use the GUI to develop, but for the next class, we use the code. On the basic stamp, we used PBasic which was pretty straight forward how to do stuff. I had actually made a bunch of cheat sheets for the kids. Any of you got any cheat sheets made for S2.
Which language is best to start with?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-03-16 20:31
    The documentation for the S2 object includes examples for Spin. So that's where I would start.

    -Phil
  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2011-03-17 09:59
    Hi Doug!

    In addition to what Phil mentioned, the 'View the Propeller Program' button in the S2 GUI Software is pretty nifty too. It's a great way to see how your GUI code translates to Spin and help get you familiar with the s2.spin object.

    -- Jessica
  • WhitWhit Posts: 4,191
    edited 2011-03-17 12:22
    @dbergman,

    Jessica and Phil are right on the mark. While you are playing with the GUI - toggle over into the Propeller tool. Just like the doing that with the old Scribbler GUI - you can find your GUI written program pretty easily. Using that Spin code and the S2 Spin Object Documentation (Accessed on the bottom left side bar of the GUI Help) and then finding the method - You and the students should be able to find your way along.

    See images below - a very basic GUI prorgram (you can click each image to make it larger).

    GUILED.PNG


    Toggle into the Propeller Tool and find the Main Program

    SpinLED.PNG


    Go to the S2 Spin Object Documentation (form GUI help "?"

    S2 Spin Object Documentation.PNG


    Then find the LED methods and study how they work.

    LED Methods.PNG


    In this example, you can see how to make an LED red, or blink by changing the Spin code - An option that can't be achieved in the GUI! So, you are on your way with a simple example of working in Spin from the GUI.

    Hope this helps! The GUI and Propeller Tool being interconnected is going to be a great tool for learning Spin. You can also study the Default S2 program (Demo programs) and the S2 object itself.

    By the way, Jessica's Scribble Your Name with the S2 Robot would be another fun way to play with Spin and the S2 - though a bit more advanced.
    216 x 298 - 22K
    463 x 170 - 5K
    849 x 518 - 35K
Sign In or Register to comment.