   end
 
   @spec do_toggle(String.t, integer) :: no_return
-  def do_toggle(pin, val) do
+  defp do_toggle(pin, val) do
     case val do
       # if it was off turn it on
       0 -> write_pin(%{pin_number: pin, pin_mode: @digital, pin_value: 1}, [])

    Farmbot.HTTP.post("/api/points", json)
  end

  @doc ~s"""
    Takes a photo
      args: %{},

    end
  end

  @type pair ::
    %Ast{kind: String.t, args: %{label: String.t, value: any}, body: []}

  @spec pair(%{label: String.t, value: any}, []) :: pair
  def pair(%{label: label, value: value}, []) do
    %Ast{kind: "pair", args: %{label: label, value: value}, body: []}
