Sketch name can't start with number, remove the zip of the librairie, it can be found fron the arduino IDE

This commit is contained in:
Axel C
2015-12-07 00:54:40 +01:00
parent 482ac852d3
commit 6bb7be5290
3 changed files with 4 additions and 10 deletions

View File

@@ -1,8 +0,0 @@
Libraries used:
TimerOne
https://github.com/PaulStoffregen/TimerOne
Timer on is a collection of routines for configuring the 16 bit hardware timer called Timer1 on the ATmega168/328. There are 3 hardware timers available on the chip, and they can be configured in a variety of ways to achieve different functionality. The development of this library began with the need for a way to quickly and easily set the PWM period or frequency, but has grown to include timer overflow interrupt handling and other features.
To install, unzip and copy the folder inside
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries

View File

@@ -3,6 +3,8 @@
*
* TODO Switch action reset hours to 9
* TODO Safety extra sensor
*
* Need to setup TimerOne from the librairie
*/
#include <TimerOne.h>
@@ -15,7 +17,7 @@
#define PUMP_IN 2 // Pin of the pump 1
#define PUMP_OUT 3 // Pin of the pump 2
#define LAMP 4 // Pin of the lamp relay
#define FOG 5 // Pin of the lamp relay
#define FOG 5 // Pin of the fog relay
// -Sensors
#define WATER_UP 9 // Pin of the water sensor 1
#define WATER_DOWN 8 // Pin of the water sensor 2
@@ -34,7 +36,7 @@ volatile int secondsCounter; // 0 to 59
volatile int minutesCounter; // 0 to 59
bool ledState = 0; // led status memory
bool waterLevelState = 0; // water level status memory
char waterLevelState = 0; // water level status memory
#define DOWN 0
#define FILLING 1
#define UP 3