Skip to content

Instantly share code, notes, and snippets.

View analog-io's full-sized avatar

AnalogIO analog-io

View GitHub Profile
@analog-io
analog-io / I2C_SoftwareLibrary.cpp
Created April 10, 2015 15:42
SoftwareI2C for MSP430 Energia
//
// SoftwareWire.cpp
// Library C++ code
// ----------------------------------
// Developed with embedXcode
// http://embedXcode.weebly.com
//
// Project embed1
//
// Created by Rei VILO, mars 29, 2013 09:59
@analog-io
analog-io / agent
Created January 28, 2015 05:33
Water Meter Electric Imp Code
// Create a data stream at data.sparkfun.com, then enter your keys here:
local publicKey = "xx" // enter public key here
local privateKey = "xx" // enter private key here
data_array <- array(800,[0,0,0,0])
total <- 0
conversion <- 4.95/476
local req = http.get("https://data.sparkfun.com/output/"+o_publicKey+"/latest.json");