-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add esp8266 board * fix: Point to own fork to check compilation * fix: Add another macro to test * fix: Apply latest working version * feat: Add ESP32 board firmware generation * fix: Working pins for ESP32 * fix: Make use of local file system for building ESP boards * fix: Final working version of ESP32 * fix: Fix pin numbering * fix: Add pin function on select options * fix: Make use oc consistent name in select for ESP boards * fix: Add more general boards. * fix: Use pin number instead of macros * fix: Fix pin numering to be in order
- Loading branch information
1 parent
341c52c
commit 79c4258
Showing
7 changed files
with
260 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
esphome: | ||
name: kickstart-esp32 | ||
|
||
esp32: | ||
board: esp32dev | ||
|
||
logger: | ||
web_server: | ||
captive_portal: | ||
mdns: | ||
api: | ||
ota: | ||
|
||
wifi: | ||
ssid: !secret wifi_ssid | ||
password: !secret wifi_password | ||
ap: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
esphome: | ||
name: kickstart-esp8266 | ||
|
||
esp8266: | ||
board: esp01_1m | ||
|
||
logger: | ||
web_server: | ||
captive_portal: | ||
mdns: | ||
api: | ||
ota: | ||
|
||
wifi: | ||
ssid: !secret wifi_ssid | ||
password: !secret wifi_password | ||
ap: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
substitutions: | ||
name: REPLACEME | ||
import_url: REPLACEME | ||
|
||
esphome: | ||
name: $name | ||
project: | ||
name: lt.kickstart | ||
version: "1.0" | ||
|
||
dashboard_import: | ||
package_import_url: $import_url | ||
import_full_config: true | ||
|
||
external_components: | ||
source: ../components | ||
components: | ||
- pinscan | ||
- hub_api | ||
refresh: 10 min | ||
|
||
logger: | ||
baud_rate: 115200 | ||
logs: | ||
select: ERROR | ||
sensor: ERROR | ||
text_sensor: ERROR | ||
|
||
ota: | ||
|
||
wifi: | ||
ap: | ||
ssid: $name | ||
|
||
captive_portal: | ||
|
||
mdns: | ||
|
||
api: | ||
reboot_timeout: 0s | ||
|
||
web_server: | ||
local: true | ||
|
||
pinscan: | ||
id: scanner | ||
pin_state_sensor: | ||
name: -> Pin State | ||
|
||
|
||
select: | ||
- platform: template | ||
id: mode | ||
name: -> Pin Mode | ||
options: | ||
- INPUT | ||
- INPUT_PULLUP | ||
- OUTPUT_HIGH | ||
- OUTPUT_LOW | ||
optimistic: true | ||
on_value: | ||
- pinscan.set_mode: | ||
id: scanner | ||
mode: !lambda "return id(mode).active_index().value();" | ||
|
||
- platform: template | ||
id: pin | ||
name: -> Pin | ||
optimistic: true | ||
on_value: | ||
- pinscan.set_pin: | ||
id: scanner | ||
pin: !lambda "return id(pin).active_index().value() - 1;" | ||
- pinscan.set_mode: | ||
id: scanner | ||
mode: !lambda "return id(mode).active_index().value();" | ||
|
||
text_sensor: | ||
- platform: wifi_info | ||
ip_address: | ||
id: ip_address | ||
name: IP Address | ||
- platform: debug | ||
device: | ||
name: Device Info | ||
reset_reason: | ||
name: Reset Reason | ||
|
||
button: | ||
- platform: factory_reset | ||
name: Reset to Factory Settings | ||
- platform: restart | ||
name: Restart | ||
|
||
debug: | ||
update_interval: 5s | ||
|
||
sensor: | ||
- platform: debug | ||
free: | ||
name: Heap Free | ||
loop_time: | ||
name: Loop Time | ||
- platform: uptime | ||
name: Uptime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
substitutions: | ||
name: kickstart-esp32 | ||
import_url: github://libretiny-eu/esphome-kickstart/yaml/import-esp32.yaml@master | ||
|
||
packages: | ||
base: !include kickstart-base-esp.yaml | ||
|
||
esp32: | ||
board: esp32dev | ||
|
||
select: | ||
- platform: template | ||
id: !extend pin | ||
options: | ||
- Select PIN | ||
- GPIO0 | ||
- GPIO1 | ||
- GPIO2 | ||
- GPIO3 | ||
- GPIO4 | ||
- GPIO5 / SS | ||
- GPIO12 | ||
- GPIO13 | ||
- GPIO14 | ||
- GPIO15 | ||
- GPIO16 | ||
- GPIO17 | ||
- GPIO18 / SCK | ||
- GPIO19 / MISO | ||
- GPIO21 / SDA | ||
- GPIO22 / SCL | ||
- GPIO23 / MOSI | ||
- GPIO25 / DAC1 | ||
- GPIO26 / DAC2 | ||
- GPIO27 | ||
- GPIO32 | ||
- GPIO33 | ||
- GPIO34 | ||
- GPIO35 | ||
- GPIO36 | ||
- GPIO39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
substitutions: | ||
name: kickstart-esp8266 | ||
import_url: github://libretiny-eu/esphome-kickstart/yaml/import-esp8266.yaml@master | ||
|
||
packages: | ||
base: !include kickstart-base-esp.yaml | ||
|
||
esp8266: | ||
board: esp01_1m | ||
|
||
select: | ||
- platform: template | ||
id: !extend pin | ||
options: | ||
- Select PIN | ||
- GPIO0 | ||
- GPIO1 | ||
- GPIO2 / SDA | ||
- GPIO3 | ||
- GPIO4 | ||
- GPIO5 / SCL | ||
- GPIO12 / MISO | ||
- GPIO13 / MOSI | ||
- GPIO14 / SCK | ||
- GPIO15 / SS | ||
- GPIO16 |