Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 numpy as np | |
import datetime | |
import matplotlib.pyplot as plt | |
import math | |
import scipy | |
import argparse | |
def mean_downsample(a, args.r): | |
pad_size = math.ceil(float(a.size)/args.r)*args.r - a.size |
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
#include <HX711.h> | |
#include <Servo.h> | |
#define DOUT 3 | |
#define CLK 2 | |
#define SERVOPIN 9 | |
const int nAvg=5; | |
const int nXPixels=160; | |
const int nYPixels=128; |
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 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
% Function for reading the binary file from the biax, the Marone lab calls | |
% this the lk file | |
function [data,outname] = ReadBinBiax(runname) | |
% Input: runname, a string of the form 'pxxxx'. The code expects the data | |
% file to be in foo/pxxx/data/pxxx_data.bin. Edit the variable mechfname | |
% and the filename argument for fidbiax to suit your needs. | |
% Output: 1) data: data matrix with all relevant columns appended with the biax | |
% column as the first column (refer line 65), | |
% 2) outname: header info of the lk file. Edit the outname variable | |
% to change to your choice of file structure. |
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
// include the library code: | |
#include <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(12, 11, 7, 6, 5, 4); | |
volatile unsigned long firstPulseTime; | |
volatile unsigned long lastPulseTime; | |
volatile unsigned long numPulses; |