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
# For Waveshare 7" ESP32 board. | |
substitutions: | |
friendly_name: Waveshare 7 | |
esphome: | |
name: wave-7 | |
friendly_name: ${friendly_name} | |
platformio_options: | |
build_unflags: -Werror=all |
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
# Gitignore settings for ESPHome | |
# This is an example and may include too much for your use-case. | |
# You can modify this file to suit your needs. | |
/.esphome/ | |
/secrets.yaml | |
/wifi.yaml |
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
# Gitignore settings for ESPHome | |
# This is an example and may include too much for your use-case. | |
# You can modify this file to suit your needs. | |
/.esphome/ | |
/secrets.yaml | |
/wifi.yaml |
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
color: | |
- id: color_back | |
hex: FF0000 | |
- id: color_blue | |
hex: 0000FF | |
lvgl: | |
color_depth: 16 | |
bg_color: 0xFFFFFF | |
style_definitions: |
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
# Note that the passwords etc. in this example are completely bogus. | |
substitutions: | |
name: "deta-6922ha-01" | |
friendly_name: "Dual outlet" | |
project_name: "DETA.6922HA" | |
project_version: "1.0" | |
device_description: "Indoor 2 gang outlet" | |
esphome: | |
name: "${name}" |
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
import sys | |
def getVal(ch): | |
if ch >= 'A' and ch <= 'Z': | |
return ord(ch) - ord('A') | |
if ch >= '0' and ch <= '9': | |
return ord(ch) - ord('0') + 26 | |
return -1 | |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
static double getRadians(const char * str, double limit, const char * msg) { | |
char * endptr; | |
double val = strtod(str, &endptr); | |
if(endptr != str && val < limit && val > -limit) | |
return val * 0.0174533; // convert to radians | |
fprintf(stderr, "Invalid value for %s: %s\n", msg, str); |
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
package com.mycompany.myapp | |
import com.controlj.layout.FrameGroup | |
import com.controlj.layout.Gravity | |
import com.controlj.layout.HorizontalGroup | |
import com.controlj.layout.IosUxHost | |
import com.controlj.layout.Layout | |
import com.controlj.layout.VerticalGroup | |
import com.controlj.layout.VerticalGroup.Companion.verticalGroup | |
import com.controlj.shim.IosCxFactory |
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
import os | |
import plistlib | |
import hashlib | |
from cryptography import x509 | |
profileLib = os.getenv("HOME") + "/Library/MobileDevice/Provisioning Profiles" | |
for filename in os.listdir(profileLib): | |
stream = os.popen('security cms -D -i "' + profileLib + '"/' + filename) | |
input = stream.read() |
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
/* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
NewerOlder