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
#!/usr/bin/env python | |
import ivi | |
import sys | |
import os | |
import os.path | |
from optparse import OptionParser | |
p = OptionParser() | |
p.add_option('-v', '--verbose', dest="verbose", action='store_true', | |
help="print verbose.") | |
p.add_option('-d', '--device', dest="device", metavar="DEV", |
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 pyaudio | |
import numpy as np | |
import time | |
CHANNELS = 1 | |
RATE = 48000 | |
p = pyaudio.PyAudio() | |
rm_freq = 10.0 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
short phase_err; | |
short phase_err_int; | |
short duration_count; | |
short duration_exp; | |
#define REFERENCE 10000000L | |
static void | |
dac_control_init() | |
{ |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <dirent.h> | |
#include <math.h> | |
#include <fcntl.h> | |
#include <assert.h> | |
#include <malloc.h> | |
#include <sys/mman.h> | |
#include <sys/types.h> |
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
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> <head> | |
<title>FlashAir GPIO Test</title> | |
</head> | |
<body> | |
<p> | |
<input type="button" id="on" value="On"> | |
<input type="button" id="off" value="Off"> | |
</p> | |
<p> |
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
PICkit 3: | |
Product ID: 0x900a | |
Vendor ID: 0x04d8 (Microchip Technology Inc.) | |
Version: 0.02 | |
Serial Number: DEFAULT_PK3 | |
Speed: Up to 12 Mb/sec | |
Manufacturer: Microchip Technology Inc. | |
Location ID: 0xfd120000 / 4 | |
Current Available (mA): 500 |
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
#!/usr/bin/env python | |
import pyaudio | |
import pylase as ol | |
import numpy as np | |
import sys | |
import threading | |
chunk = 1024 | |
#chunk = 2048 | |
CHANNELS = 2 |