farmbot v6.4.1 Farmbot.Firmware.UartHandler View Source

Handles communication between farmbot and uart devices

Link to this section Summary

Link to this section Functions

Link to this function calibrate(handler, axis) View Source

Calibrate an axis.

Callback implementation for Farmbot.Firmware.Handler.calibrate/2.

Lock the firmware.

Callback implementation for Farmbot.Firmware.Handler.emergency_lock/1.

Link to this function emergency_unlock(handler) View Source

Unlock the firmware.

Callback implementation for Farmbot.Firmware.Handler.emergency_unlock/1.

Link to this function find_home(handler, axis) View Source

Find home on an axis.

Callback implementation for Farmbot.Firmware.Handler.find_home/2.

Link to this function handle_call(arg1, arg2, state) View Source
Link to this function handle_demand(amnt, state) View Source
Link to this function handle_events(events, _, state) View Source

Home an axis.

Callback implementation for Farmbot.Firmware.Handler.home/2.

Home every axis.

Callback implementation for Farmbot.Firmware.Handler.home_all/1.

Link to this function move_absolute(handler, pos, x_speed, y_speed, z_speed) View Source

Move to a position.

Callback implementation for Farmbot.Firmware.Handler.move_absolute/5.

Link to this function read_all_params(handler) View Source

Read all params

Callback implementation for Farmbot.Firmware.Handler.read_all_params/1.

Link to this function read_param(handler, param) View Source

Read a paramater.

Callback implementation for Farmbot.Firmware.Handler.read_param/2.

Link to this function read_pin(handler, pin, pin_mode) View Source

Read a pin.

Callback implementation for Farmbot.Firmware.Handler.read_pin/3.

Link to this function request_software_version(handler) View Source

Request firmware version.

Callback implementation for Farmbot.Firmware.Handler.request_software_version/1.

Link to this function set_pin_mode(handler, pin, mode) View Source

Set a pin mode (input/output)

Callback implementation for Farmbot.Firmware.Handler.set_pin_mode/3.

Link to this function set_servo_angle(handler, pin, number) View Source

Set angle on a servo pin.

Callback implementation for Farmbot.Firmware.Handler.set_servo_angle/3.

Start a firmware handler.

Callback implementation for Farmbot.Firmware.Handler.start_link/0.

Link to this function terminate(reason, state) View Source
Link to this function update_param(handler, param, val) View Source

Update a paramater.

Callback implementation for Farmbot.Firmware.Handler.update_param/3.

Link to this function write_pin(handler, pin, pin_mode, value) View Source

Write a pin.

Callback implementation for Farmbot.Firmware.Handler.write_pin/4.

Manually set an axis’s current position to zero.

Callback implementation for Farmbot.Firmware.Handler.zero/2.