Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions DS2408/DS2408.cpp → DS2408.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#include "DS2408.h"
#include <WProgram.h>

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

#include <stdio.h>


Expand Down Expand Up @@ -165,7 +171,6 @@ uint8_t DS2408::find(Devices* devices) {
Device device;
while(this->search(device)) {
if(device[0] == DS2408_FAMILY) {
Serial.println("Count!!");
count++;
}
}
Expand Down
4 changes: 2 additions & 2 deletions DS2408/DS2408.h → DS2408.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/**
* OneWire Commands
**/

#define ONEWIRE_READ_CMD 0x33
#define ONEWIRE_MATCH_CMD 0x55
#define ONEWIRE_SEARCH_CMD 0xF0
Expand All @@ -16,7 +16,7 @@
#define ONEWIRE_OVERRIDE_MATCH_CMD 0x69
#define ONEWIRE_OVERRIDE_SKIP_CMD 0x3C
#define ONEWIRE_RESUME_CMD 0xA5

**/

// DS2408
#define DS2408_FAMILY 0x29
Expand Down
File renamed without changes.