50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
substitutions:
|
|
device_name: "JalozieV2"
|
|
friendly_name: "JalozieV2"
|
|
comment: "esp-C6, RGBled, usbPD"
|
|
api_password: !secret JalozieV2_api
|
|
ota_password: !secret ota_password
|
|
wifi_ssid: !secret wifi_ssid
|
|
wifi_password: !secret wifi_password
|
|
wifi_ssid2: !secret wifi_ssid2
|
|
wifi_password2: !secret wifi_password2
|
|
gateway: !secret ip_gateway
|
|
subnet: !secret ip_subnet
|
|
ip: !secret JalozieV2_ip
|
|
location: "slaapkamer"
|
|
board: "esp32-c6-devkitc-1"
|
|
framework: esp-idf
|
|
num_leds: "1"
|
|
chipset: WS2812
|
|
is_rgbw: "false"
|
|
|
|
#pins
|
|
pin_led1: GPIO05
|
|
pin_pd_cfg1: GPIO19
|
|
pin_pd_cfg2: GPIO20
|
|
pin_pd_cfg3: GPIO21
|
|
pin_mot_rst: GPIO3
|
|
pin_mot_slp: GPIO2
|
|
pin_mot_dir: GPIO1
|
|
pin_mot_stp: GPIO0
|
|
#pin_mot_en:
|
|
pin_hall_dir: GPIO6
|
|
pin_hall_stp: GPIO7
|
|
|
|
packages:
|
|
board: !include boards/esp32-gen.yaml
|
|
connection: !include common/wifi.yaml
|
|
device_base: !include common/common.yaml
|
|
logger: !include templates/logger.yaml
|
|
leds: !include templates/light_rgbw_rmt.yaml
|
|
usbcpd: !include interfaces/CH224K.yaml
|
|
|
|
stepper:
|
|
- platform: a4988
|
|
id: stepper_motor
|
|
step_pin: ${pin_mot_stp}
|
|
dir_pin: ${pin_mot_dir}
|
|
max_speed: 200
|
|
sleep_pin: ${pin_mot_slp}
|
|
acceleration: inf
|
|
deceleration: inf |