mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 12:42:21 +01:00
Update
This commit is contained in:
@@ -4,8 +4,9 @@ from esphomeyaml.automation import ACTION_REGISTRY
|
||||
import esphomeyaml.config_validation as cv
|
||||
from esphomeyaml.const import CONF_ACCELERATION, CONF_DECELERATION, CONF_ID, CONF_MAX_SPEED, \
|
||||
CONF_POSITION, CONF_TARGET
|
||||
from esphomeyaml.helpers import Pvariable, TemplateArguments, add, add_job, esphomelib_ns, \
|
||||
get_variable, int32, templatable, Action
|
||||
from esphomeyaml.core import CORE
|
||||
from esphomeyaml.cpp_generator import Pvariable, TemplateArguments, add, get_variable, templatable
|
||||
from esphomeyaml.cpp_types import Action, esphomelib_ns, int32
|
||||
|
||||
PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA.extend({
|
||||
|
||||
@@ -78,7 +79,7 @@ def setup_stepper_core_(stepper_var, config):
|
||||
|
||||
|
||||
def setup_stepper(stepper_var, config):
|
||||
add_job(setup_stepper_core_, stepper_var, config)
|
||||
CORE.add_job(setup_stepper_core_, stepper_var, config)
|
||||
|
||||
|
||||
BUILD_FLAGS = '-DUSE_STEPPER'
|
||||
|
@@ -4,8 +4,9 @@ from esphomeyaml import pins
|
||||
from esphomeyaml.components import stepper
|
||||
import esphomeyaml.config_validation as cv
|
||||
from esphomeyaml.const import CONF_DIR_PIN, CONF_ID, CONF_SLEEP_PIN, CONF_STEP_PIN
|
||||
from esphomeyaml.helpers import App, Pvariable, add, gpio_output_pin_expression, setup_component, \
|
||||
Component
|
||||
from esphomeyaml.cpp_generator import Pvariable, add
|
||||
from esphomeyaml.cpp_helpers import gpio_output_pin_expression, setup_component
|
||||
from esphomeyaml.cpp_types import Component, App
|
||||
|
||||
A4988 = stepper.stepper_ns.class_('A4988', stepper.Stepper, Component)
|
||||
|
||||
|
Reference in New Issue
Block a user