Skip to content

Instantly share code, notes, and snippets.

# Feit Smart Dimmer 2 (2023)
Sold at costco for 40$ CAD for a 3-pack. Initially locked into the tuya ecosystem
but can be flashed with open source local automation OpenBK7231T_App firmware.
Product code: DIMSMART
FCC ID: SYW-DIMSMART
## Flash Procedure
@fredericmorin
fredericmorin / printer.cfg
Created February 3, 2023 15:38
Voron 2.4r2 StealthBurner/CW2
# This file contains common pin mappings for the BigTreeTech Octopus V1.
# To use this config, the firmware should be compiled for the STM32F446 with a "32KiB bootloader"
# Enable "extra low-level configuration options" and select the "12MHz crystal" as clock reference
# after running "make", copy the generated "klipper/out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the OctoPus with that SD card.
# See docs/Config_Reference.md for a description of parameters.
## Voron Design VORON2 250/300/350mm BigTreeTech OctoPus V1 TMC2209 UART config
# Asana frame / Matek 722 Mini + Holybro Tekko32 Mini 45A
# - RCX 2207 1700kv / 6s 1300mAh / 5.1x4.1x3 v1s or R38
# version
# Betaflight / STM32F7X2 (S7X2) 4.3.0 Mar 21 2021 / 08:32:51 (faeee8282) MSP API: 1.44
# config: manufacturer_id: MTKS, board_name: MATEKF722SE, version: f173f9bc, date: 2019-10-02T14:43:13Z
# start the command batch
batch start
defaults nosave
# Stock T-Motor F15 Toothpick frame with
# - hurricane 3x1.8 props
# - R-XSR/FPort receiver
# diff all
# version
# Betaflight / MATEKF411 (MK41) 4.1.0 Oct 16 2019 / 11:43:17 (c37a7c91a) MSP API: 1.42
# start the command batch
0eNrsvdtuY0mSLPovet3FQtwvhfmK8zpoFJhKZhbRSkmgqKyuM9C/b1ISqSXJI8LM12J1Y8556UtmLmNcPTw83M3+5+rLzePmfre93f/+5e7un1e//c/bnzxc/fbfk/97/Lvt9d3tyx8/bL/frm+Of7b/635z9dvVdr/5cfXL1e36x/H/fXnc3W52q+3tw2a33+yunn652t5+3fzr6jf79Mv467vtzbuPHPDRw36z/rHa3H7f3m4mn3r9p+HpH79cbW732/1289Lr5//z1++3jz++HNr3mz0j7Hfr24f7u91+9WVzsz8g3989HD67uz3+5gFq5X+5+uvwX/mA/nW721y//N1zvz6AOhzUwaAeB7UwaIBBDYwZYUy8nQnGxAc0f1yszdkJv8b3cEGAK82d08RNTwJOxXFsB8aaYfcs0Ttr5a3W7JsVG+VAFNsD8VxTogjytvLvt/ftj534cRx8bDvfJmoI5Ma/Ld2HH+ubm9Xm5jB3u+316v7uZtPau4fmHIzhs9n8bXIm/HL1c7N7eP7HOXtTQ04lxTcTao4N0B0h52b92N5ub7+vvu62NzfkQSJ1cHqqwPZdbsznea+vu2K8JxyNnWBsT2N7GDuw2AaGjiw03urEQuODnVlofI0U5foz/aMB2var3LOihm5ZbLfM8vvMddCcxr4NTwuwZb2G0VunN2aR62V3NpNuCZsljpfXdSY3rGimUoaqmvESoZxRbksPnApWeSwg2E55LCDYXncsINBBdywg0FF3LCDQyj31CVrjddl/r9f1Y/N1+/jj3+J2LetoLetaLepMLeo+LeowLeoiLegUHc6+4a6tSrcGwVb4TA4HtzpHBcJ2Or8FwvbKpYFgh75FIl3eSKIZzOPCwLoty2p/pO9zsR5I3+1ifY5FPC/TAbNav2IR36ozaM5rfQeVt+D03sJ2d3e7ur9Z7zfvXAT4fH/Y391uVt8ed7frazGM9uvJlBz+19OsYPlpO/r+qT5o0bBBeEz8fHTYp1lx8DOO65/jnYh
# build tools & deps
brew tap PX4/homebrew-px4 && brew update # required for gcc-arm-none-eabi
brew install gcc-arm-none-eabi-49 cmake dfu-util
pip install pillow
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg # or else you get a clang cant fine inttypes.h error while compiling lua shit
# clone and build
git clone --recursive -b 2.3 https://github.com/opentx/opentx
cd opentx
mkdir build
#!/bin/bash
mkdir -p ~/opensky-dev/
cd ~/opensky-dev/
# setup environment
mkdir bin
echo "export PATH=\$PATH:`pwd`/bin" >> ~/.bash_profile
export PATH=$PATH:`pwd`/bin
# intall cc-tools
@fredericmorin
fredericmorin / multimodule-tx-dev
Last active August 29, 2019 15:25
pascallanger/DIY-Multiprotocol-TX-Module dev environment
#!/bin/bash
mkdir -p ~/multimodule-dev/
cd ~/multimodule-dev/
# setup environment
mkdir bin
echo "export PATH=\$PATH:`pwd`/bin" >> ~/.bash_profile
export PATH=$PATH:`pwd`/bin
# curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh # missing fix from branch massi/noapi
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/massi/noapi/install.sh | sh
batch start
defaults nosave
# Betaflight / MATEKF722SE (MF7S) 4.0.0 Apr 11 2019 / 07:26:45 (9ad2cc844) MSP API: 1.41
# with FPort on TX1
set serialrx_provider = FPORT
set serialrx_inverted = ON
set serialrx_halfduplex = ON
# Betaflight / MATEKF411RX (M41R) 4.0.2 May 5 2019 / 12:03:24 (56bdc8d26) MSP API: 1.41
# Asana frame / Matek 722 Mini + Holybro Tekko32 Mini 45A
# - RCX 2207 1700kv / 6s 1300mAh / 5.1x4.1x3 v1s or R38
# version
# Betaflight / STM32F7X2 (S7X2) 4.2.0 Jun 3 2020 / 11:52:14 (9718914fd) MSP API: 1.43
# config: manufacturer_id: MTKS, board_name: MATEKF722SE, version: f173f9bc, date: 2019-10-02T14:43:13Z
# start the command batch
batch start
defaults nosave