EasyManua.ls Logo

Emakefun RF-NANO - Page 26

Emakefun RF-NANO
34 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
26
Mirf.config();
}
void loop()
{
Mirf.setTADDR((byte *)"FGHIJ"); //Set the receiver address
value = 100;
Mirf.send((byte *)&value); //Send instructions, send random number value
Serial.print("Wait for sending.....");
while (Mirf.isSending()) delay(1); //Until you send successfully, exit the loop
Serial.print("Send success:");
Serial.println(value);
delay(1000);
}
Data sent by transmitter 1
Figure 3-2-1
Launch data program 2 code
Code path RF-NANO Demo Program\Multiple send to one receive
communication\Emitter2\Emitter2.ino
Source code
//Transmitter program