destroyedlolo / owbus Goto Github PK
View Code? Open in Web Editor NEWMaxim's One Wire bus handling for arduino
License: Other
Maxim's One Wire bus handling for arduino
License: Other
If this library isn't abandoned yet? Could support be added for DS28EA00 chain-function?
Hi,
It's working now...
Library examples are not correct. All probe assignment should be before "void setup(){"
See below for correct code...
//#include <OneWire.h>
#include <OWBus.h>
#include <OWBus/DS18B20.h>
#include <OWBus/DS2413.h>
#define ONE_WIRE_BUS 7 // Where 1W bus is connected to
OneWire oneWire(ONE_WIRE_BUS); // Initialize oneWire library
OWBus bus(&oneWire);
int count;
DS18B20 probe(bus, 0x282503E00200000B);
DS2413 led(bus, 0x3A34074E0000000A);
DS2413 fan2(bus, 0x3AF3E64D0000008F);
void setup() {
Serial.begin(9600);
delay(100);
count=1;
}
void loop() {
//Serial.println(probe.getTemperature());
if (probe.getTemperature()>=29){
led.setPIOA( false );
led.setPIOB( false );
fan2.setPIOB( true );
}
else{
led.setPIOA( true );
led.setPIOB( true );
fan2.setPIOB( false );
}
//Serial.println(fan2.readPIOs());
//Serial.println(fan2.getPIOB());
delay(500);
//count++;
//Serial.println(count);
bt_upload();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.