sudo apt install flex bison libssl-dev libncurses5-dev bc
cd
mkdir kernel
cd kernel/
#include "RTClib.h" | |
#include <Adafruit_MCP23017.h> | |
#define NUM_ONES_LEDS 4 | |
enum { | |
pinFirst = 0, | |
pinLast = 15, | |
pinJanuary = 0, | |
pinFebruary, |
#include "RTClib.h" | |
#include <Adafruit_MCP23017.h> | |
#define NUM_ONES_LEDS 4 | |
RTC_DS3231 rtc; | |
Adafruit_MCP23017 mcpMinutes; | |
Adafruit_MCP23017 mcpHours; | |
Adafruit_MCP23017 mcpMonths; | |
Adafruit_MCP23017 mcpDayLow; | |
Adafruit_MCP23017 mcpDayHigh; |
/** | |
*** Probes & Data storage | |
**/ | |
AdafruitIO_Feed *probe1 = io.feed("probe_one"); | |
AdafruitIO_Feed *probe2 = io.feed("probe_two"); | |
AdafruitIO_Feed *probe3 = io.feed("probe_three"); | |
AdafruitIO_Feed *probe4 = io.feed("probe_four"); | |
const int numberOfProbes = 4; |
#include <Arduino.h> | |
class DebouncedSwitch { | |
public: | |
DebouncedSwitch(int p, int mode=INPUT_PULLDOWN) : pin(p), nextValidAt(0) { | |
pinMode(pin, mode); | |
state = nextState = digitalRead(pin); | |
} | |
bool update() { |
#!/bin/sh | |
inPreprocessorMode () { | |
hasE=0 | |
hasU=0 | |
hasT=0 | |
for arg in "$@" | |
do | |
if [ 'x-E' = "x$arg" ]; then hasE=1; fi | |
if [ 'x-undef' = "x$arg" ]; then hasU=1; fi |
/* DMA Stall | |
This sketch will demonstrate how the FreeTrouch library code makes reads to | |
PTC peripheral registers without the required Read-Synchronization. While | |
such reads succeed, they stall the AHB-APB Bridge C. | |
This is normally not an issue - but if there are other accesses going through | |
that bridge, then they will be stalled as well. A common example is to use the | |
DMAC to transfer data to the DAC or from the ADC. These peripherals are on | |
the same bridge (C). Stalls caused by non-scyhcronized reading seem to be on |
"""Convert DDP mastered CDs to Kunaki's CUE format. | |
tl;dr: | |
python ddp-to-kunaki.py my-cool-cd-ddp-dir my-cool-cd-kunaki | |
This will produce two files: | |
my-cool-cd-kunaki.CUE <-- the markers | |
my-cool-cd-kunaki.iso <-- the audio (*not* an ISO format file!) |
These are instructions for building a stand alone, headless, music computer based on the Pisound audio card and a RaspberryPi 3.
I use this set up in my live performance rig where it does all of the following without breaking a sweat: