Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SPI.h>
- #include "nRF24L01.h"
- #include "RF24.h"
- int msg[1];
- RF24 radio(53,48);
- const uint64_t pipe = 0xE8E8F0F0E1LL;
- int SW1 = 7;
- void setup(void){
- Serial.begin(9600);
- radio.begin();
- radio.openWritingPipe(pipe);}
- void loop(void){
- msg[0] = 111;
- radio.write(msg, 1);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement