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
double dim = 600; | |
double center = dim/2; | |
double offsetX = 0; | |
double offsetY = 0; | |
double range = 10; | |
double scale = dim / range; | |
double plotWidth = 0.05; | |
double plotIncrement = 0.1; | |
double sinhFactor = 1.25; // 1.25 |
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 <Adafruit_NeoPixel.h> | |
#define PIN 1 | |
//single pixel, v2 Flora RGB NeoPixel, so GRB bitsream at 800 khz | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, PIN, NEO_GRB + NEO_KHZ800); | |
// assuming we have adafruit gemma v2 | |
// http://adafru.it/1222 | |
// assuming we have four fiora RGB neopixels |
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
/* | |
Klingon-D7 | |
1) Light up impulse lights (pin 11) | |
2) Detect button press (pin 2) | |
3) Fire torpedo (pin 9) | |
*/ | |
int PIN_TORPEDO_BUTTON = 2; | |
int PIN_TORPEDO = 9; | |
int PIN_IMPULSE = 11; |
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/ruby | |
require 'rubygems' | |
require 'json' | |
require 'csv' | |
infile = ARGV[0] | |
json = File.read(infile) | |
parsed = JSON.parse(json.encode("UTF-8")) | |
outfile = ARGV[1] |
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
require 'csv' | |
require 'descriptive_statistics' | |
#data array to store values | |
data = [] | |
# load data | |
CSV.foreach('20150124.csv') do |row| | |
data << row[0] | |
end |
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
///////////////////////////////////////////////////////////////// | |
// Created by Kevin Elsenberger // | |
// June 2, 2013 // | |
// elsenberger.k at gmail.com // | |
// from http://playground.arduino.cc/Code/EEPROMReadWriteLong // | |
///////////////////////////////////////////////////////////////// | |
//Needed to access the eeprom read write functions | |
#include <EEPROM.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
/************************************************************************************* | |
Dieroller | |
Uses the library TrueRandom from https://code.google.com/p/tinkerit/wiki/TrueRandom | |
(c) 2015 Jeff D. Conrad | |
**************************************************************************************/ | |
#include <LiquidCrystal.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
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // select the pins used on the LCD panel | |
int bluePin = 11; | |
int greenPin = 12; | |
int redPin = 13; | |
void setup() | |
{ |
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 <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <LiquidCrystal.h> | |
// Data wire is plugged into pin 1 on the Arduino | |
#define ONE_WIRE_BUS 1 | |
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) | |
OneWire oneWire(ONE_WIRE_BUS); |
NewerOlder