Openwireh Library Download Arduino Exclusive Extra Quality Page
#include <openwire.h> OpenWire ow(7); // Pin 7 as OpenWire bus void setup() Serial.begin(9600); ow.begin(); if(ow.reset() == 0) Serial.println("Device present"); else Serial.println("No device");
A: The original author’s site was shut down. This article + the downloaded ZIP's /extras/datasheet.pdf represent the only complete reference. openwireh library download arduino exclusive
// Timing in microseconds (adjust for clock speed) #define OW_DELAY_A 6 #define OW_DELAY_B 64 #define OW_DELAY_C 60 #define OW_DELAY_D 10 #define OW_DELAY_E 9 #define OW_DELAY_F 55 #define OW_DELAY_G 0 #define OW_DELAY_H 480 #define OW_DELAY_I 70 #include <openwire
A: Yes – the exclusive version we distribute is under MIT License. No attribution required, but appreciated. No attribution required, but appreciated
// openwire.h - OpenWire v1.0.4 Exclusive for Arduino #ifndef OpenWire_h #define OpenWire_h #include "Arduino.h"
class OpenWire public: OpenWire(uint8_t pin); void begin(); uint8_t reset(); void writeBit(uint8_t bit); uint8_t readBit(); void writeByte(uint8_t data); uint8_t readByte(); uint8_t crc8(uint8_t *data, uint8_t len);
