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
# gr_live_window.jl | |
using GR | |
function keyboard_channel() | |
# allow 'q' and <ENTER> sequentially pressed on the keyboard to break the loop | |
count = 0 | |
kb2loop = Channel(10) | |
@async while true | |
kb_input = readline(STDIN) | |
# maybe we hit an error or something got messed up... |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# using Plots | |
# theme(:juno) | |
# pyplot(size=(900, 300)) | |
# plot(randn(10), m=:o) | |
using DSP | |
PlottableFilter = Union{FilterCoefficients} | |
f = digitalfilter( | |
Lowpass(10, fs=40), | |
Butterworth(8) |
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 Plots | |
function Plots.plot(fc::FilterCoefficients, w=linspace(0, pi, 500); fs=2, | |
domag=true, dophase=true, | |
doimp=false, impn=500, | |
dostep=false, stepn=500, size=(800, 600)) | |
# calculate plottable vectors | |
if domag || dophase | |
h = freqz(fc, w) | |
end | |
if doimp |
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 <SD.h> | |
// START https://mcuoneclipse.com/2014/01/26/entercritical-and-exitcritical-why-things-are-failing-badly/ | |
#define CpuCriticalVar() uint8_t cpuSR | |
#define CpuEnterCritical() \ | |
do { \ | |
asm ( \ | |
"MRS R0, PRIMASK\n\t" \ |
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
# 0.6.2 in the home directory | |
#export JULIA_DIR="$HOME/julia-d386e40c17/" | |
#export JULIA_HOME="$JULIA_DIR/bin" | |
echo "JULIA_DIR = $JULIA_DIR" | |
echo "JULIA_HOME = $JULIA_HOME" | |
# | |
gcc -o wizbang -fPIC -I$JULIA_DIR/include/julia \ | |
-std=gnu99 \ | |
-L$JULIA_DIR/lib -L$JULIA_DIR/lib/julia \ |
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
# nargoutTest.jl | |
function nargoutTest(a,b) | |
@show a, b | |
return "outp1", "outpTWO" | |
end |
NewerOlder