move morse to seperate module
This commit is contained in:
parent
b93d48920a
commit
cbec08aae8
11 changed files with 98 additions and 12 deletions
13
morse/lib/morse.ex
Normal file
13
morse/lib/morse.ex
Normal file
|
@ -0,0 +1,13 @@
|
|||
defmodule Morse do
|
||||
@moduledoc """
|
||||
Functions to control the signal lamp connected with GPIO.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Takes a string composed of dots and dashes, and signals them with the
|
||||
signal lamp.
|
||||
"""
|
||||
def signal(msg) do
|
||||
IO.puts(msg)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue