sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
OWP_DG_Dragino_Sensors.ino File Reference
#include <PJON.h>

Macros

#define SENSOR   "owp:dg:dragino:v1"
 
#define READ_INFO   0x01
 
#define READ_VCC   0x11
 
#define READ_TEMP   0x12
 
#define READ   0x21
 
#define WRITE   0x22
 
#define WRITE_CAL   0x32
 
#define HEART_LED   A2
 
#define OWPJON_PIN   4
 

Functions

PJON< SoftwareBitBang > bus (43)
 
void setup ()
 
void receiver_function (uint8_t *payload, uint16_t length, const PJON_Packet_Info &packet_info)
 
void loop ()
 
float readVcc ()
 
float readTemp (void)
 

Variables

uint8_t mem_buffer [256]
 

Macro Definition Documentation

#define HEART_LED   A2
#define OWPJON_PIN   4
#define READ   0x21
#define READ_INFO   0x01
#define READ_TEMP   0x12
#define READ_VCC   0x11
#define SENSOR   "owp:dg:dragino:v1"

needs doxygen docu - derived from DeviceGeneric.ino using Yun_Dragino... ...

#define WRITE   0x22
#define WRITE_CAL   0x32

Function Documentation

PJON<SoftwareBitBang> bus ( 43  )
void loop ( void  )

OneWirePJON device status update function.

Returns
(void)
float readTemp ( void  )

Internal Temperature Sensor for ATmega328 types.

Parameters
void
See Also
receiver_function()
https://playground.arduino.cc/Main/InternalTemperatureSensor
Returns
The chip temperature in [°C]
float readVcc ( )

Accessing the secret voltmeter on the Arduino 168 or 328.

See Also
receiver_function()
http://code.google.com/p/tinkerit/wiki/SecretVoltmeter
Returns
The supply voltage in [V]
void receiver_function ( uint8_t *  payload,
uint16_t  length,
const PJON_Packet_Info &  packet_info 
)
void setup ( void  )

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

Variable Documentation

uint8_t mem_buffer[256]