summaryrefslogtreecommitdiffstats
path: root/nRF24L01/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'nRF24L01/send.c')
-rw-r--r--nRF24L01/send.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/nRF24L01/send.c b/nRF24L01/send.c
deleted file mode 100644
index b390cf3..0000000
--- a/nRF24L01/send.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <stdlib.h>
-#include <string.h>
-
-#include <avr/io.h>
-#include <avr/interrupt.h>
-#include <util/delay.h>
-
-#include "radio.h"
-#include "serial.h"
-
-int main(void)
-{
- uint8_t n;
- struct radio_cfg cfg;
- const char *s = "hello, world!";
-
- n = strlen(s);
-
- cfg.netid = 0x01;
- cfg.nodeid = 0x02;
- cfg.payload_len = n;
-
- serial_init();
- radio_init(&cfg);
- radio_set_tx_power(18);
-
- for (;;) {
- radio_send(s, n);
- serial_write_line("sent");
- _delay_ms(1500);
- }
-
- return 0;
-}