Packages

Simulates (NOT EMULATES) Farmbot's arduino firmware and hardware. The firmware is pretty stable and used in FarmbotOS's testing environment. The visual hardware simulator is very much a WIP.

Current section

Files

Jump to
farmbot_simulator lib firmware code_handler f20.ex
Raw

lib/firmware/code_handler/f20.ex

defmodule Firmware.CodeHandler.F20 do
@moduledoc false
@behaviour Firmware.CodeHandler
def run(args) do
Enum.map(Firmware.ParamaterList.params, fn({param, id}) ->
"R21 P#{id} V#{Firmware.ParamaterHandler.read_param(param)} #{args}"
end)
end
end