Skip to content

Instantly share code, notes, and snippets.

@knewter
Created January 6, 2014 12:17
Show Gist options
  • Save knewter/8282027 to your computer and use it in GitHub Desktop.
Save knewter/8282027 to your computer and use it in GitHub Desktop.
defmodule MyCopter do
import ExCopter.Command.Client
def demo do
IO.puts "Taking off..."
takeoff
for 2000 do: :nothing
IO.puts "Spinning..."
for 3500, do: spin_left(25)
IO.puts "Landing..."
land
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment