Difference between revisions of "Myro in PyjamaRuby Sample Code"

From IPRE Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
Here are some examples of Myro in Pyjama Python programs.
 
Here are some examples of Myro in Pyjama Python programs.
  
* [[Media:PyjamaRubyDanceDemo.pyw|DanceDemo.rb]] This program has the scribbler perform a simple dance routine.
+
* [[Media:PyjamaRubyDanceDemo-rb.txt|DanceDemo.rb]] This program has the scribbler perform a simple dance routine.
* [[Media:PyjamaRubyExplore.pyw|Explore.rb]] This program has the scribbler move forward until it hits an obstacle, then it backs up, turns, and moves forward again.  It stops after 1 minute.
+
* [[Media:PyjamaRubyExplore-rb.txt|Explore.rb]] This program has the scribbler move forward until it hits an obstacle, then it backs up, turns, and moves forward again.  It stops after 1 minute.
* [[Media:PyjamaRubyFlute.pyw|Flute.rb]] This program uses the three light sensors as "keys" on a flute.
+
* [[Media:PyjamaRubyFlute-rb.txt|Flute.rb]] This program uses the three light sensors as "keys" on a flute.
* [[Media:PyjamaRubyImageDemo.pyw|ImageDemo.rb]] This program captures an image from the scribbler and displays it.  It also creates and displays some images with simple effects (e.g., negative, edge-enhanced, etc.).
+
* [[Media:PyjamaRubyImageDemo-rb.txt|ImageDemo.rb]] This program captures an image from the scribbler and displays it.  It also creates and displays some images with simple effects (e.g., negative, edge-enhanced, etc.).
* [[Media:PyjamaRubyPictureSequence.pyw|PictureSequence.rb]] This program captures 10 images from the scribbler then displays them in sequence.
+
* [[Media:PyjamaRubyPictureSequence-rb.txt|PictureSequence.rb]] This program captures 10 images from the scribbler then displays them in sequence.
* [[Media:PyjamaRubyVisualExplorer.pyw|VisualExplorer.rb]]  This program displays a joystick controller that allows the user to control the robot's movement.  The program also captures the image from the robot and displays it once each second.
+
* [[Media:PyjamaRubyVisualExplorer-rb.txt|VisualExplorer.rb]]  This program displays a joystick controller that allows the user to control the robot's movement.  The program also captures the image from the robot and displays it once each second.
  
 
[[Hoedown|Back to Myro/Scribbler SIGCSE Hoedown page]]
 
[[Hoedown|Back to Myro/Scribbler SIGCSE Hoedown page]]

Latest revision as of 20:35, 8 March 2011

Here are some examples of Myro in Pyjama Python programs.

  • DanceDemo.rb This program has the scribbler perform a simple dance routine.
  • Explore.rb This program has the scribbler move forward until it hits an obstacle, then it backs up, turns, and moves forward again. It stops after 1 minute.
  • Flute.rb This program uses the three light sensors as "keys" on a flute.
  • ImageDemo.rb This program captures an image from the scribbler and displays it. It also creates and displays some images with simple effects (e.g., negative, edge-enhanced, etc.).
  • PictureSequence.rb This program captures 10 images from the scribbler then displays them in sequence.
  • VisualExplorer.rb This program displays a joystick controller that allows the user to control the robot's movement. The program also captures the image from the robot and displays it once each second.

Back to Myro/Scribbler SIGCSE Hoedown page