sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
OWGeneric_DangerShield.ino File Reference
#include <OneWireSlave.h>
#include <CapacitiveSensor.h>
#include <TimerOne.h>

Macros

#define SoftwareVer   1.0
 
#define SensorCount   9
 
#define LEDPin   13
 
#define OWPin   A5
 
#define flashPause   100
 
#define flashLength   50
 
#define SLIDER1   0
 
#define SLIDER2   1
 
#define SLIDER3   2
 
#define BUTTON1   10
 
#define BUTTON2   11
 
#define BUTTON3   12
 
#define LED1   5
 
#define LED2   6
 
#define BUZZER   3
 
#define TEMP   4
 
#define LIGHT   3
 
#define LATCH   7
 
#define CLOCK   8
 
#define DATA   4
 

Functions

OneWireSlave ds (OWPin)
 
void setup ()
 
void loop ()
 
void timerIsr ()
 
void process ()
 
void pack (float val)
 
void SetBCD (byte val)
 
void FlashLED_blocking (void)
 
void debugPrint (int time)
 
long readVcc ()
 

Variables

unsigned char rom [8] = {DS2415, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00}
 
char rtccountr_in [5] = { 0x00, 0x00, 0x00, 0x00, 0x00}
 
char rtccountr_out [5] = {B11110000, 0x01, 0x23, 0xCD, 0xEF}
 
const byte ledCharSet [17]
 
CapacitiveSensor cs_9_2 = CapacitiveSensor(9,2)
 
volatile unsigned long ctr1 = 0
 
volatile unsigned long ctr2 = 0
 
volatile unsigned long ctr3 = 0
 
unsigned long d
 
unsigned long t
 

Macro Definition Documentation

#define BUTTON1   10
#define BUTTON2   11
#define BUTTON3   12
#define BUZZER   3
#define CLOCK   8
#define DATA   4
#define flashLength   50
#define flashPause   100
#define LATCH   7
#define LED1   5
#define LED2   6
#define LEDPin   13
#define LIGHT   3
#define OWPin   A5
#define SensorCount   9
#define SLIDER1   0
#define SLIDER2   1
#define SLIDER3   2
#define SoftwareVer   1.0
#define TEMP   4

Function Documentation

void debugPrint ( int  time)
OneWireSlave ds ( OWPin  )
void FlashLED_blocking ( void  )
void loop ( void  )

OneWirePJON device status update function.

Returns
(void)
void pack ( float  val)
void process ( )
long readVcc ( )
void SetBCD ( byte  val)
void setup ( void  )

Arduino IDE: put your setup code here, to run once.

void timerIsr ( )

Custom ISR Timer Routine

(will reduce 1wire stability and performance - but by how much - usable for RTC relais?)

Variable Documentation

CapacitiveSensor cs_9_2 = CapacitiveSensor(9,2)
volatile unsigned long ctr1 = 0
volatile unsigned long ctr2 = 0
volatile unsigned long ctr3 = 0
unsigned long d
const byte ledCharSet[17]
Initial value:
= {
B00111111,B00000110,B01011011,B01001111,B01100110,B01101101,B01111101,B00000111,B01111111,B01101111,
B11110111,B11111111,B10111001,B10111111,B11111001,B11110001,
B00000000
}
unsigned char rom[8] = {DS2415, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00}
char rtccountr_in[5] = { 0x00, 0x00, 0x00, 0x00, 0x00}
char rtccountr_out[5] = {B11110000, 0x01, 0x23, 0xCD, 0xEF}
unsigned long t