diff espNode/cam.yaml @ 1718:82213d91471c

new cam component with http server
author drewp@bigasterisk.com
date Sun, 07 Aug 2022 04:43:47 -0700
parents e9540ee0cf73
children c77b5ab7b99d
line wrap: on
line diff
--- a/espNode/cam.yaml	Sun Aug 07 02:26:11 2022 -0700
+++ b/espNode/cam.yaml	Sun Aug 07 04:43:47 2022 -0700
@@ -9,6 +9,8 @@
   platform: ESP32
   board: esp32cam
   build_path: $build_path
+  includes:
+    - component/cam.h
 
 wifi:
   ssid: !secret wifi_ssid
@@ -36,14 +38,18 @@
     name: "flash"
     output: flash_out
     default_transition_length: 0s
-  # - platform: binary
-  #   output: gpio_4
-  #   name: flash
-
-  
 
 output:
   - platform: ledc
     id: flash_out
     pin: GPIO4
     frequency: 19531Hz
+    channel: 4
+
+
+custom_component:
+  - lambda: |-
+      auto camc = new esphome::CamComponent();  
+      // App.register_component(camc);
+      return {camc};
+