Point to lowpower lib, add case plans
This commit is contained in:
parent
9de0c3ba9d
commit
06e58a70b1
|
|
@ -44,7 +44,8 @@
|
||||||
// and copyright notices in any redistribution of this code
|
// and copyright notices in any redistribution of this code
|
||||||
// **********************************************************************************
|
// **********************************************************************************
|
||||||
#include <NewPing.h> // get this library at: https://code.google.com/p/arduino-new-ping/
|
#include <NewPing.h> // get this library at: https://code.google.com/p/arduino-new-ping/
|
||||||
#include <LowPower.h> // get this library at: http://www.rocketscream.com/blog/2011/07/04/lightweight-low-power-arduino-library/
|
#include <LowPower.h> //get library from: https://github.com/lowpowerlab/lowpower
|
||||||
|
//writeup here: http://www.rocketscream.com/blog/2011/07/04/lightweight-low-power-arduino-library/
|
||||||
|
|
||||||
#define TRIG 6 // digital pin wired to TRIG pin of ultrasonic sensor
|
#define TRIG 6 // digital pin wired to TRIG pin of ultrasonic sensor
|
||||||
#define ECHO 7 // digital pin wired to ECHO pin of ultrasonic sensor
|
#define ECHO 7 // digital pin wired to ECHO pin of ultrasonic sensor
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,8 @@
|
||||||
// Please maintain this license information along with authorship
|
// Please maintain this license information along with authorship
|
||||||
// and copyright notices in any redistribution of this code
|
// and copyright notices in any redistribution of this code
|
||||||
// **********************************************************************************
|
// **********************************************************************************
|
||||||
#include <LowPower.h> // get this library at: http://www.rocketscream.com/blog/2011/07/04/lightweight-low-power-arduino-library/
|
#include <LowPower.h> //get library from: https://github.com/lowpowerlab/lowpower
|
||||||
|
//writeup here: http://www.rocketscream.com/blog/2011/07/04/lightweight-low-power-arduino-library/
|
||||||
//#define BUZZER_ENABLE //uncomment this line if you have the BUZZER soldered and want the sketch to make sounds
|
//#define BUZZER_ENABLE //uncomment this line if you have the BUZZER soldered and want the sketch to make sounds
|
||||||
//#define OLED_ENABLE //uncomment this line if you have an OLED attached on the SonarMote and want to see the distance printed on it
|
//#define OLED_ENABLE //uncomment this line if you have an OLED attached on the SonarMote and want to see the distance printed on it
|
||||||
//the OLED drawing will cause a visible delay in the LED blinking, nothing much to do about it without complicating the sketch a lot more
|
//the OLED drawing will cause a visible delay in the LED blinking, nothing much to do about it without complicating the sketch a lot more
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue