This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SerialPort = require('serialport'); | |
const Readline = SerialPort.parsers.Readline; | |
try { | |
var port = new SerialPort('/dev/ttyUSB0'); // default port for Zbee Explorer | |
// As I sent line separation message | |
const parser = new Readline(); | |
port.pipe(parser); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <OneWire.h> | |
/** | |
* Get temperature | |
* And communicate through zbee S1 | |
* On Arduino Leonardo | |
*/ | |
int Temp_Pin = 2; | |
int outputPins[] = {10, 11, 12}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <OneWire.h> | |
int Temp_Pin = 2; | |
int outputPins[] = {10, 11, 12}; | |
OneWire ds(Temp_Pin); | |
void setup() { | |
Serial.begin(9600); | |
for (int i = 0; i < 3; i++) { |
NewerOlder