Add valve example
Used for gardena valves with 9V power supply.
This commit is contained in:
parent
c56142ccec
commit
dca85a7b6b
10 changed files with 325 additions and 0 deletions
31
examples/osd/arduino-valve/valve.h
Normal file
31
examples/osd/arduino-valve/valve.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* \defgroup Magnetic Valve
|
||||
*
|
||||
* Resource definition for Magnetic valve
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* Resource definitions for the Magnetic valve
|
||||
*
|
||||
* \author
|
||||
* Ralf Schlatterbeck <rsc@tux.runtux.com>
|
||||
*/
|
||||
|
||||
#ifndef valve_h
|
||||
#define valve_h
|
||||
#include "contiki.h"
|
||||
#include "contiki-net.h"
|
||||
#include "er-coap.h"
|
||||
|
||||
#define ENABLE_PIN 2
|
||||
#define BRIDGE1_PIN 3
|
||||
#define BRIDGE2_PIN 4
|
||||
|
||||
extern uint8_t valve;
|
||||
extern resource_t res_valve;
|
||||
|
||||
#endif // valve_h
|
||||
/** @} */
|
Loading…
Add table
Add a link
Reference in a new issue