Skip to content

Instantly share code, notes, and snippets.

View glynhudson's full-sized avatar

Glyn Hudson glynhudson

View GitHub Profile
@glynhudson
glynhudson / Arduino Serial CSV decoder
Created August 10, 2011 22:30
Arduino Serial CSV decoder - sketch to convert serial data received in CSV format into variables
/****************************** Functions **************************************/
/*************************************************************************************************/
// Gets the serial command from the serial port, decodes it and performs action
/*********************************************************************************************/
// Decodes a serial input string in the form a255,65535,65535,65535,65535 CR
// So an alpha command a (arg0), followed by up to 5 numerical arguments (arg1 to arg5)
// If any of the arguments are missing they will default to zero
// so b1 = b,1,0,0,0,0 and b,1 = b,1,0,0,0,0
// Always produces 6 comma separated terms, of which the first is alpha
@glynhudson
glynhudson / nanode_pachube.pde
Created August 9, 2011 19:33 — forked from maniacbug/nanode_pachube.pde
Example to use EtherCard on Nanode to upload data to Pachube
// Simple demo for feeding some random data to Pachube.
// Based on pachube.pde 2011-07-08 <jcw@equi4.com> http://opensource.org/licenses/mit-license.php
// Created by <maniacbug@ymail.com>
// This has been tested with EtherCard rev 7752
// Get it from http://jeelabs.net/projects/11/wiki/EtherCard
#include <EtherCard.h>
// change these settings to match your own setup
#define FEED "33735"