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
/****************************** 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 |
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
// 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" |
NewerOlder