Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <SPI.h>
  2. #include "nRF24L01.h"
  3. #include "RF24.h"
  4. int msg[1];
  5. RF24 radio(53,48);
  6. const uint64_t pipe = 0xE8E8F0F0E1LL;
  7. int SW1 = 7;
  8. void setup(void){
  9. Serial.begin(9600);
  10. radio.begin();
  11. radio.openWritingPipe(pipe);}
  12. void loop(void){
  13. msg[0] = 111;
  14. radio.write(msg, 1);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement