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 f22.ex
Raw

lib/firmware/code_handler/f22.ex

defmodule Firmware.CodeHandler.F22 do
@moduledoc false
@behaviour Firmware.CodeHandler
def run(["P" <> id, "V" <> value, _qcode]) do
Firmware.ParamaterHandler.set_param(id, value)
:noreply
end
end