Skip to content

Instantly share code, notes, and snippets.

View atomgomba's full-sized avatar

Károly Kiripolszky atomgomba

View GitHub Profile
@atomgomba
atomgomba / c_cpp_properties.json
Created September 24, 2022 19:40
VSCode config for QMK development on Linux (Keychron K6 RGB)
{
"configurations": [
{
"name": "Linux",
"includePath": [
"/usr/lib/gcc/avr/5.4.0/include/**",
"/usr/lib/gcc/avr/5.4.0/include-fixed/**",
"/usr/lib/gcc/arm-none-eabi/10.3.1/include/**",
"/usr/lib/gcc/arm-none-eabi/10.3.1/include-fixed/**",
"/usr/lib/avr/include/**",
@atomgomba
atomgomba / buildflags.py
Last active February 1, 2024 19:41
Generate C code for Betaflight build flags
import requests
JSON_URL = "https://build.betaflight.com/api/options/4.5.0-zulu"
def get_gates_options() -> tuple:
data = requests.get(JSON_URL, timeout=2).json()
gates = []
options = []
@atomgomba
atomgomba / airline-ding.ck
Last active August 28, 2024 17:40
Airline dings based on ARINC 715-3 standard
SinOsc osc => Gain g => ADSR e => dac => WvOut w => blackhole;
.5 => g.gain;
("dings.wav", IO.INT24) => w.wavFilename;
// Note frequencies from ARINC 715-3, section 3.4
// https://aviation.stackexchange.com/a/32459/82793
587 => int highNote;
494 => int lowNote;
// Envelope settings