     end)
   end
 
+  defp rpi_ws281x_path do
+    Path.join(:code.priv_dir(:nerves_neopixel), "rpi_ws281x")
+  end
+
 end

    |> to_string


    port = Port.open({:spawn_executable, executable_path},
      [{:args, [ch1_pin, ch1_count, ch2_pin, ch2_count]},
        {:packet, 2},
        :use_stdio,
        :exit_status, # make sure that we're notified when the rpi handler process dies
        :binary])
    {:ok, %{
      port: port


  use GenServer
  require Logger

  def start_link(channel1, channel2 \\ [pin: 0, count: 0]) do
    GenServer.start_link(__MODULE__, [channel1, channel2], [name: __MODULE__])
