From 50ffb4ead7293067144496894822436ba098656a Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Thu, 3 Apr 2025 17:47:16 +0800 Subject: wip: rx. --- send.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 send.c (limited to 'send.c') diff --git a/send.c b/send.c new file mode 100644 index 0000000..fed243c --- /dev/null +++ b/send.c @@ -0,0 +1,21 @@ +#include +#include + +#include "nrfm.h" +#include "uart.h" + +int main(void) +{ + const char *s = "hello world!"; + + uint8_t rxaddr[] = { 194, 178, 82 }; + uint8_t txaddr[] = { 194, 178, 83 }; + + uart_init(); + radio_init(rxaddr); + radio_print_config(); + + radio_sendto(txaddr, s, strlen(s)); + + return 0; +} -- cgit v1.2.3