![Emakefun RF-NANO Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/emakefun/rf-nano/rf-nano_operating-instructions-manual_2398917026.webp)
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
.
(
"Wait for sending....."
);
while
(
Mirf
.
isSending
())
delay
(
1
);
//Until you send successfully, exit the loop
Serial
.
(
"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