Skip to content

Instantly share code, notes, and snippets.

View cpyarger's full-sized avatar

Christopher P. Yarger cpyarger

View GitHub Profile
@cpyarger
cpyarger / cp32Wifi.ino
Created November 21, 2017 01:13
ESP32 RGB LED control
// Arduino sketch which outputs PWM for a set of channels based on serial input.
#include <WiFi.h>
#include <ESPmDNS.h>
#include <WiFiClient.h>
const char* ssid = "touchametron";
const char* password = "superduper";
@cpyarger
cpyarger / old_chastity.md
Created February 24, 2021 18:59
old chastity commands
here you will find all the commands you'll need to get chastity up and running!
Verification
.verify
Claim your verification role
Reverse-image searching
react to a photo with:eyes:
Chastity will DM you reverse search results
Setup
.verified_role_setup
@cpyarger
cpyarger / sqcount.ino
Created April 12, 2021 22:58
bit ed square wave count
const byte INPUT_PIN = 3;
long maxCountTime = 2000;
long nowTime = 0;
int waveState = 0;
int waveCount = 0;
int waveHigh = 0;
void setup() {
// put your setup code here, to run once:
@cpyarger
cpyarger / obs-studio.code-workspace
Last active January 23, 2022 03:13
VSCode Workspace that is ready to take on obs-studio on ubuntu linux
{
"folders": [
{ "name": "root",
"path": "./"
},
{
"name":"obs-studio",
"path": "./obs-studio"
@cpyarger
cpyarger / OBS_ENV_SETUP.ps1
Last active February 8, 2022 08:09
Automated setup and install obs-studio build environment on windows 10
# This script sets up everything needed to do obs-studio development on windows 10
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Git
choco install -y git
# Install Cmake
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
# Install 7zip and create alias
@cpyarger
cpyarger / rfbridge.yaml
Created March 31, 2022 22:08
New RFBridge code
esphome:
name: rfbridge
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
@cpyarger
cpyarger / dt.yaml
Created April 22, 2022 16:27
esphome/HA device tracker
esphome:
name: esphome-web-74a0bc
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger: