Skip to content

Instantly share code, notes, and snippets.

@bd1es
bd1es / time2tty.cpp
Created January 14, 2024 07:28
time2tty, for a NanoPi NEO2 running Armbian
/* time2tty.cpp
*
* This file is part of QTR Clock AVR, one of my projects used to display time.
*
* time2tty, version 1.0 Copyright (C) 2010-2023 BD1ES.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@bd1es
bd1es / window_td.cpp
Last active July 24, 2023 10:03
This code provides users with commonly used window functions
/* window_td.cpp v1.3
*
* Copyright (C) 2018, 2021, 2023 BD1ES <bd1es@hotmail.com>
*/
/*
* Dependencies:
* PocketFFT:
* https://gitlab.mpcdf.mpg.de/mtr/pocketfft
* A customized version of "pocketfft.c" is needed for the ESP32 toolchains.
@bd1es
bd1es / pocketfft.c
Created July 17, 2023 16:58
An experimental PocketFFT modification for doing FFTs on ESP-IDF and ESP32 Arduino
/*
* This file is part of pocketfft.
* Licensed under a 3-clause BSD style license - see LICENSE.md
*/
/*
* Main implementation file.
*
* Copyright (C) 2004-2018 Max-Planck-Society
* \author Martin Reinecke
@bd1es
bd1es / k3-2kl-banddec.c
Created August 29, 2021 11:54
K3-2KL band decoder suitable for ATtiny2313. (This code is under review.)
/*
-- A K3-2KL band decoder suitable for ATtiny2313.
-- (C) 2011 B1Z.
-- Currently, nothing about licensing is considered.
-- Author: BD1ES.
-- Comments:
-- The chip should be configured to enable the internal "RC clock div 8."
-- That is, the main frequency of the CPU is 1 MHz.
*/
@bd1es
bd1es / k3-2kl-banddec.vhd
Created August 29, 2021 11:20
K3-2KL band decoder suitable for GAL16V8. (This code is under review.)
-- A K3-2KL band decoder suitable for GAL16V8.
-- (C) 2011 B1Z.
-- Currently, nothing about licensing is considered.
-- Author: BD1ES.
-- Define a chip independent kernel.
library ieee;
use ieee.std_logic_1164.all;
@bd1es
bd1es / bch1511.cpp
Last active February 16, 2023 07:05
Generate [15,11] BCH code for AVR MCUs
/*
* This file is part of the QTR Clock AVR, one of my project displaying time.
*
* Copyright (C) 2010-2022 BD1ES.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 3 of the License, or (at your option) any later
* version.
*
@bd1es
bd1es / main.cpp
Created April 5, 2020 05:33
Generating Hamming codec C++ classes
/*
* Developer : Naveen Rohilla
* Objective : Hamming code
*/
#include <iostream>
#include "main.hpp"
using namespace std;
@bd1es
bd1es / wspr_enc.c
Last active September 18, 2021 06:43
WSPR encoder AVR porting and testing
/* wspr_enc.c
*
* This file is part of the AVR WSPR beacon.
*
* Copyright (C) 2010-2020 BD1ES.
* License: GNU GPL v3+
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or