I have 2 nodes each have arduino, thermocouple sensor, and a zigbee. I want to send the temperature data to one base station, connected to a PC. Can I use digital.Write() and digital.Read()
Example:
#define data1 1 //for TX1 pin
void setup() {
}
void loop() {
c = thermocouple.readCelsius();
digitalWrite(data1,c)
}
and for the receiver or base station:
#define data1 0 //for RX0 pin
void setup(){
//some other codes here
}
void loop(){
digitalread(data1,c)
}
Please do note that it is just an example, not a working code, just to show the digital read and write functions. Im trying to lear the basics of arduino.
I also know that some will say use Serial function instead. Im using LabVIEW called LINX, which "Serial" cant be used.
Hope someone will help me. Thankyou!