Skip to content

Instantly share code, notes, and snippets.

View schlerp's full-sized avatar

PattyC schlerp

View GitHub Profile
@schlerp
schlerp / sleepdemoserial.c
Last active August 29, 2015 14:11 — forked from ecerulm/sleepdemoserial.c
edited code from ecrelum to add ability to read all defined sensors once if an 'R' comes in the serial
/* Sleep Demo Serial
* -----------------
* Example code to demonstrate the sleep functions in a Arduino. Arduino will wake up
* when new data is received in the serial port USART
* Based on Sleep Demo Serial from http://www.arduino.cc/playground/Learning/ArduinoSleepCode
*
* Copyright (C) 2006 MacSimski 2006-12-30
* Copyright (C) 2007 D. Cuartielles 2007-07-08 - Mexico DF
*
* With modifications from Ruben Laguna 2008-10-15