![]() |
|
|
|
|
#1 |
|
Senior Member
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1153 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
|
|
|
|
|
#2 | |
|
Junior Member
Регистрация: 19.03.2014
Сообщений: 11
Вес репутации: 0 ![]() |
Цитата:
дешевле получается, если девайсов надо с десяток, к примеру. Набегает. |
|
|
|
|
|
|
#3 |
|
Junior Member
Регистрация: 19.03.2014
Сообщений: 11
Вес репутации: 0 ![]() |
вроде можно...
нарыл, пошел пробовать ) http://forum.arduino.cc/index.php/topic,78461.0.html #include <OneWire.h> #include <DallasTemperature.h> // Data wires plugged into digital pins 2,3,4 on the Arduino #define ONE_WIRE_BUSA 2 #define ONE_WIRE_BUSB 3 #define ONE_WIRE_BUSC 4 // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) OneWire oneWireA(ONE_WIRE_BUSA); OneWire oneWireB(ONE_WIRE_BUSB); OneWire oneWireC(ONE_WIRE_BUSC); // Pass our oneWire reference to Dallas Temperature. DallasTemperature sensorsA(&oneWireA); DallasTemperature sensorsB(&oneWireB); DallasTemperature sensorsC(&oneWireC); Then you can read your sensors using the usual functions, e.g. Code: sensorsA.begin(); sensorsB.begin(); sensorsC.begin(); |
|
|
|
![]() |
| Здесь присутствуют: 1 (пользователей: 0 , гостей: 1) | |
|
|