Advertisement
Guest User

Untitled

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