bluetooth jammer
This commit is contained in:
1 parent
2b8c8481c8
commit
09e3e12262
1 file changed
+28
@@ -0,0 +1,28 @@
|
||||
#include <SPI.h>
|
||||
#include <RF24.h>
|
||||
|
||||
RF24 radio(2, 15);
|
||||
const byte adresse[6] = "00001";
|
||||
uint8_t noise[32];
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
radio.begin();
|
||||
|
||||
radio.setPALevel(RF24_PA_MAX);
|
||||
radio.setDataRate(RF24_2MBPS);
|
||||
radio.setAutoAck(false);
|
||||
radio.openWritingPipe(adresse);
|
||||
radio.stopListening();
|
||||
|
||||
for(int i=0; i<32; i++) noise[i] = 0xFF;
|
||||
}
|
||||
|
||||
void loop() {
|
||||
for (int i = 0; i < 80; i++) {
|
||||
radio.setChannel(i);
|
||||
radio.startWrite(&noise, sizeof(noise), true);
|
||||
Serial.println("send");
|
||||
// delay(5);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user