move morse to seperate module

This commit is contained in:
Pim Kunis 2019-07-14 15:05:45 +02:00
parent b93d48920a
commit cbec08aae8
11 changed files with 98 additions and 12 deletions

13
morse/lib/morse.ex Normal file
View 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