Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions public/help/en/robots/sphero_commands.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ <h3>ping</h3>
<p>Pings Sphero to see if it is responding</p>
</div>
<div style="background: rgb(240, 248, 255); color: black" class="color">
<h3>FORWARD</h3>
<h3>Sphero::FORWARD</h3>
<p>A constant value, same as 0</p>
</div>
<div style="background: rgb(240, 248, 255); color: black" class="color">
<h3>BACKWARD</h3>
<h3>Sphero::BACKWARD</h3>
<p>A constant value, same as 180</p>
</div>
<div style="background: rgb(240, 248, 255); color: black" class="color">
<h3>RIGHT</h3>
<h3>Sphero::RIGHT</h3>
<p>A constant value, same as 90</p>
</div>
<div style="background: rgb(240, 248, 255); color: black" class="color">
<h3>LEFT</h3>
<h3>Sphero::LEFT</h3>
<p>A constant value, same as 270</p>
</div>
<p>There are more commands, but these are the most important. For more information, take a look at the Sphero gem documentation on Github.</p>
Expand Down
10 changes: 5 additions & 5 deletions public/help/shared/robots/code1_1.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
require 'sphero'

Sphero.start '/dev/tty.Sphero-YBW-RN-SPP' do
roll 60, FORWARD
roll 60, Sphero::FORWARD
keep_going 3

roll 60, RIGHT
roll 60, Sphero::RIGHT
keep_going 3

roll 60, BACKWARD
roll 60, Sphero::BACKWARD
keep_going 3

roll 60, LEFT
roll 60, Sphero::LEFT
keep_going 3

stop
end
end