Current section
Files
Jump to
Current section
Files
lib/elixir_max72xx/spi.ex
defmodule ElixirMax72xx.SPI do
use GenServer
defmacro __using__(_) do
quote do
@spi Application.get_env(:elixir_max72xx, :spi, ElixirALE.SPI)
end
end
def start_link(devname, spi_opts \\ [], opts \\ []) do
GenServer.start_link(__MODULE__, [], opts)
end
def transfer(pid, data) do
<<0, 0>>
end
end