Skip to content

Commit

Permalink
repair example
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Feb 15, 2016
1 parent fad6dea commit 0840926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/OneWireHubTest/OneWireHubTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ void setup()
Serial.println("OneWire-Hub Test with various Sensors");

// put your setup code here, to run once:
hub.attach(ds18B20a);
//hub.attach(ds18B20a); // TODO: you can only instatiate one of each sensors??
hub.attach(ds18B20b);
hub.attach(ds2401);
hub.attach(ds2413);
hub.attach(ds2450);
//hub.attach(ds2450); // TODO: still breaks the communication
hub.attach(ds2890);
Serial.println(hub.calck_mask());
Serial.println("config done");
Expand All @@ -75,7 +75,7 @@ void loop()
static float temperature = 20.0;
temperature += 0.1;
if (temperature > 40.0) temperature = 10.0;
ds18B20a.setTemp(21);
//ds18B20a.setTemp(21);
ds18B20b.setTemp(temperature);
Serial.println(temperature);

Expand Down

0 comments on commit 0840926

Please sign in to comment.