This file contains hidden or 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
#!/usr/bin/env python3 | |
# Copyright (c) 2019 Jon Evans <[email protected]> | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains hidden or 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
{ | |
"port": 3021, | |
"outputs": [ | |
{ | |
"port": "/dev/ttyACM0", | |
"first-strand": 0, | |
"last-strand": 7 | |
}, | |
{ | |
"port": "/dev/ttyACM1", |
This file contains hidden or 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 math | |
import numpy as np | |
import matplotlib.pyplot as plt | |
a = np.arange(0, 1024) | |
lin_fft = 1.0 + np.sin(a) | |
frequencies = (a / 1024.0) * 22050 | |
#plt.plot(frequencies, lin_fft) |
This file contains hidden or 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 serial | |
import time | |
import struct | |
import colorsys | |
import sys | |
import math | |
import random | |
def output(strand, data): |
This file contains hidden or 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
#!/bin/bash | |
SCRIPT_VERSION=0.4.60 | |
CHANGELOG="http://www.alsa-project.org/alsa-info.sh.changelog" | |
################################################################################# | |
#Copyright (C) 2007 Free Software Foundation. | |
#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 |