This file contains hidden or 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
int aprintf(char *str, ...) { | |
int i, j, count = 0; | |
va_list argv; | |
va_start(argv, str); | |
for(i = 0, j = 0; str[i] != '\0'; i++) { | |
if (str[i] == '%') { | |
count++; | |
Serial.write(reinterpret_cast<const uint8_t*>(str+j), i-j); |
This file contains hidden or 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
# esphome configuration for the TTGO T-Camera ESP32-WROVER-B | |
# https://www.aliexpress.com/item/TTGO-T-Camera-ESP32-WROVER-B-PSRAM-Camera-Module-ESP32-WROVER-OV2640-Camera-Module-0-96/32966036489.html | |
# I use this 3D-printed case for the device: | |
# https://www.thingiverse.com/thing:3540059 | |
esphome: | |
name: woonkamer | |
platform: ESP32 | |
board: esp32dev |
This file contains hidden or 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
substitutions: | |
devicename: ttgocam | |
friendly_name: test esp32cam | |
ip_address: 192.168.1.230 | |
esphome: | |
name: $devicename | |
platform: ESP32 | |
board: esp-wrover-kit |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
import getopt | |
import hashlib | |
import tarfile | |
import glob | |
import os | |
import shutil |
This file contains hidden or 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
esphome: | |
name: t_camv162 | |
platform: ESP32 | |
board: esp-wrover-kit | |
wifi: | |
ssid: "xxxx-xxxx" | |
password: "xxxxxxxx" | |
manual_ip: | |
static_ip: xxx.xxx.xxx.xxx |
This file contains hidden or 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
# https://s.click.aliexpress.com/e/_9y4QA5 | |
# Based on https://gist.github.com/Snipercaine/d8345571563536e9661422c3509d1119 | |
# And https://community.home-assistant.io/t/working-esphome-config-for-ttgo-esp32-camera-board-with-microphone/126231 | |
# Note: pins are not the same as in the docs above and even the picture on AE differs from the picture in the box | |
# | |
# Folder structure based on Frenck's config | |
# https://github.com/frenck/home-assistant-config/tree/master/config/esphome | |
substitutions: | |
slug: esp32_tcam |
This file contains hidden or 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
zha: | |
enable_quirks: true | |
custom_quirks_path: /config/zigbee/quirks |