X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=rf433ctl%2FDallasTemperature%2Fexamples%2FTester%2FTester.pde;fp=rf433ctl%2FDallasTemperature%2Fexamples%2FTester%2FTester.pde;h=0000000000000000000000000000000000000000;hp=063d265a5e379f9d3b5485454227b2bffeaeec99;hb=ff9137d257207a3a4b03c4f453cc1b7ce1e3cf17;hpb=a34e51d757fe52cb19de2937ae1b211894167524 diff --git a/rf433ctl/DallasTemperature/examples/Tester/Tester.pde b/rf433ctl/DallasTemperature/examples/Tester/Tester.pde deleted file mode 100644 index 063d265..0000000 --- a/rf433ctl/DallasTemperature/examples/Tester/Tester.pde +++ /dev/null @@ -1,124 +0,0 @@ -#include -#include - -// Data wire is plugged into port 2 on the Arduino -#define ONE_WIRE_BUS 3 -#define TEMPERATURE_PRECISION 9 - -// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) -OneWire oneWire(ONE_WIRE_BUS); - -// Pass our oneWire reference to Dallas Temperature. -DallasTemperature sensors(&oneWire); - -int numberOfDevices; // Number of temperature devices found - -DeviceAddress tempDeviceAddress; // We'll use this variable to store a found device address - -void setup(void) -{ - // start serial port - Serial.begin(9600); - Serial.println("Dallas Temperature IC Control Library Demo"); - - // Start up the library - sensors.begin(); - - // Grab a count of devices on the wire - numberOfDevices = sensors.getDeviceCount(); - - // locate devices on the bus - Serial.print("Locating devices..."); - - Serial.print("Found "); - Serial.print(numberOfDevices, DEC); - Serial.println(" devices."); - - // report parasite power requirements - Serial.print("Parasite power is: "); - if (sensors.isParasitePowerMode()) Serial.println("ON"); - else Serial.println("OFF"); - - // Loop through each device, print out address - for(int i=0;i