View Full Version : S2

03-17-2011, 02:45 AM
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?

Phil Pilgrim (PhiPi)
03-17-2011, 03:31 AM
The documentation for the S2 object includes examples for Spin. So that's where I would start.


Jessica Uelmen
03-17-2011, 04:59 PM
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

03-17-2011, 07:22 PM

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).


Toggle into the Propeller Tool and find the Main Program


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


Then find the LED methods and study how they work.


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 (http://forums.parallax.com/entry.php?171-Scribble-Your-Name-with-the-S2-Robot) would be another fun way to play with Spin and the S2 - though a bit more advanced.