I hereby claim:
- I am dansteingart on github.
- I am steingart (https://keybase.io/steingart) on keybase.
- I have a public key ASC_Q64zAvx1GtTeV8iI5wXKqNrwBV9IA1pzdRNc1eZN0Qo
To claim this, I am signing this object:
| void setup(){ | |
| Serial.begin(57600); | |
| millis(); | |
| //analogReference(DEFAULT); | |
| } | |
| float vals[6]; | |
| void RMSAveraged(int time){ |
| /** | |
| * ReadSHT1xValues | |
| * | |
| * Read temperature and humidity values from an SHT1x-series (SHT10, | |
| * SHT11, SHT15) sensor. | |
| * | |
| * Copyright 2009 Jonathan Oxer <[email protected]> | |
| * www.practicalarduino.com | |
| */ |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #Driven By Trello Card Sorting | |
| #We want to preserve this order | |
| color_list = ['green','yellow','orange','red','purple','blue'] | |
| dd = [ | |
| {'color':'yellow','name':'Jet'}, | |
| {'color':'blue','name':'Spike'}, | |
| {'color':'green','name':'Faye'}, | |
| {'color':'purple','name':'Ed'}, |
| int incomingByte = 0; // for incoming serial data | |
| int pin = 7; //White Cable Goes Here, Red to 5V, Black to GND | |
| void setup() { | |
| //Serial | |
| pinMode(pin,OUTPUT); | |
| Serial.begin(9600); // set up Serial library at 9600 bps | |
| } |
| import __main__ | |
| def whos(lss): | |
| fil = __main__.__file__ | |
| thisthinghere = open(fil).read().split("\n") | |
| vs = [] | |
| for l in thisthinghere: | |
| if l.find("=") > -1: | |
| vs.append(l.split("=")[0].strip()) | |
| keys = lss.keys() | |
| out = {} |
| /* | |
| NodeForwader: an serial to http proxy driven by ghetto get calls | |
| requirements | |
| -- serialport -> npm install serialport | |
| -- express -> npm install express | |
| -- sleep -> npm install sleep | |
| -- socket.io -> npm install socket.io | |
| -- cors -> npm install cors | |
| to start: node nodeforwader.js [HTTP PORT] [SERIAL PORT] [BAUD] [BUFFER LENGTH] |
| from urllib import urlopen as uo | |
| from time import * | |
| url = "http://localhost:8888" #replace with whatever your port is | |
| def read(): | |
| uo(url+"/write/s0000").read() | |
| sleep(.1) | |
| incoming = uo(url+"/read/").read() | |
| return incoming.split("GO,")[-1].split(",ST")[0] |
| ##Author: | |
| ##Date Started: | |
| ##Notes: | |
| from pithy import * | |
| import libMotorPhoton as lmp | |
| from datetime import datetime as dt | |
| import time | |
| photon = lmp.motorPhoton("MischievousMelon") |
I hereby claim:
To claim this, I am signing this object: