From 31557419505de215c98a0fedb295d9a814fa7ff1 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 9 Mar 2025 15:59:12 +0800 Subject: Channel and data rate config. --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 53e8233..535ffcb 100644 --- a/main.c +++ b/main.c @@ -59,6 +59,8 @@ void radio_init(void) write_reg(0x00, 0b00001100); /* use 2-byte CRC code */ write_reg(0x03, 0b00000001); /* set address width to 3 bytes */ write_reg(0x04, 0b00000000); /* disable automatic retransmission */ + write_reg(0x05, 0b01110011); /* use 2.515GHz channel */ + write_reg(0x06, 0b00000110); /* set data rate to 1Mbps */ } int main(void) -- cgit v1.2.3