sketchbook
|
#include "Adafruit_Si7021.h"
#include <PJON.h>
Macros | |
#define | ENABLE_UNITTEST |
#define | TEMP_OFFSET -215 |
#define | TEMP_COEFF 1.0 |
#define | SENSOR "owp:dg:tiny:v1" |
#define | OWPJONID 41 |
#define | OWPJONPIN 4 |
#define | READ_INFO 0x01 |
#define | READ_VCC 0x11 |
#define | READ_TEMP 0x12 |
#define | READ 0x21 |
#define | WRITE 0x22 |
#define | WRITE_CAL 0x32 |
#define | READ_SI7021_TEMP 0x44 |
#define | READ_SI7021_HUM 0x42 |
#define | _LED_BUILTIN 1 |
#define | PJON_INCLUDE_SWBB true |
#define | PJON_PACKET_MAX_LENGTH 30 |
#define | PJON_MAX_PACKETS 0 |
Functions | |
PJON< SoftwareBitBang > | bus (OWPJONID) |
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 | |
Adafruit_Si7021 | sensor = Adafruit_Si7021() |
uint8_t | mem_buffer [16] |
#define _LED_BUILTIN 1 |
#define ENABLE_UNITTEST |
#define OWPJONID 41 |
#define OWPJONPIN 4 |
#define PJON_INCLUDE_SWBB true |
#define PJON_MAX_PACKETS 0 |
#define PJON_PACKET_MAX_LENGTH 30 |
#define READ 0x21 |
#define READ_INFO 0x01 |
#define READ_SI7021_HUM 0x42 |
#define READ_SI7021_TEMP 0x44 |
#define READ_TEMP 0x12 |
#define READ_VCC 0x11 |
#define SENSOR "owp:dg:tiny:v1" |
#define TEMP_COEFF 1.0 |
#define TEMP_OFFSET -215 |
#define WRITE 0x22 |
#define WRITE_CAL 0x32 |
PJON<SoftwareBitBang> bus | ( | OWPJONID | ) |
void loop | ( | void | ) |
OneWirePJON device status update function.
float readTemp | ( | void | ) |
Internal Temperature Sensor for the ATtiny85 (not ATmega328).
void |
float readVcc | ( | ) |
Accessing the secret voltmeter on the ATtiny85 (not ATmega328).
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.
uint8_t mem_buffer[16] |
Adafruit_Si7021 sensor = Adafruit_Si7021() |