This commit is contained in:
Marcus Priesch 2017-10-10 00:39:53 +02:00
parent 325e41ae6a
commit 965ac84918
82 changed files with 26066 additions and 0 deletions

View file

@ -0,0 +1,47 @@
/**
* \defgroup Motorized Valve
*
* Resource definition for Motorized Valve
*
* @{
*/
/**
* \file
* Resource definitions for the Motorized Valve
*
* \author
* Marcus Priesch <marcus@priesch.co.at>
*/
#ifndef valve_h
#define valve_h
#include "contiki.h"
#include "contiki-net.h"
#include "er-coap.h"
#include "dev/button-sensor.h"
#define BTN_COM_PIN A0
#define PULSE_ON_PIN A1
#define DIR_UP_PIN 11
#define DIR_DOWN_PIN 10
// rot0 13 (pcint3)
// rot1 12 (pcint1)
#define BTN_1_PIN 7
#define BTN_2_PIN 5
#define BTN_3_PIN 6
#define OLED_ON_PIN 2
#define USER_LED_PIN 14
#define LED_PIN 4
extern resource_t res_pulses, res_direction;
#endif // valve_h
/** @} */