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

lib/firmware/code_handler/f21.ex

defmodule Firmware.CodeHandler.F21 do
@moduledoc false
@behaviour Firmware.CodeHandler
def run(["P" <> id, qcode]) do
"R21 P#{id} V#{Firmware.ParamaterHandler.read_param(id)} #{qcode}"
end
end