Skip to content

Instantly share code, notes, and snippets.

@dk2ro
dk2ro / temp_plot.py
Created January 23, 2019 17:03
Quick and dirty script for plotting the JSON output of rtl_433
from pylab import *
from drawnow import drawnow, figure
import random
import time
import fileinput
import json
import datetime
sensors = []
values = {}
@dk2ro
dk2ro / sweep.py
Last active December 13, 2018 21:37
Frequency response measurement of a two-port with the ADALM-PLUTO
import iio
import time
import struct
import matplotlib.pyplot as plt
import numpy.fft as fft
import numpy as np
import math
def set_rx_freq(freq):
@dk2ro
dk2ro / thinkmorse.sh
Last active February 12, 2017 10:20 — forked from c5e3/thinkmorse.sh
#!/bin/bash
leds(){
for i in 0 7 12 # 0 = power led, 7 = hibernation led, 12 = charging led
do
echo $i $1 > /proc/acpi/ibm/led
done
}
dit(){