Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2020
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Clutch and Brake Wear Monitoring */
  2.  
  3. #include <SPI.h>
  4. #include <nRF24L01.h>
  5. #include <RF24.h>
  6. RF24 radio(53, 48); // CE, CSN
  7. const byte address[6] = "00001";
  8. void setup() {
  9.   radio.begin();
  10.   radio.openWritingPipe(address);
  11.   radio.setPALevel(RF24_PA_MIN);
  12.   radio.stopListening();
  13. }
  14. void loop() {
  15.   const char text[] = "1NO";
  16.   radio.write(&text, sizeof(text));
  17.   delay(1000);
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement