From f4c23b75739ea71a03f70ff38380e38a4c285537 Mon Sep 17 00:00:00 2001 From: mitchellhansen Date: Mon, 27 Jan 2020 00:24:13 -0800 Subject: [PATCH] . --- main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 717200e..6b32e52 100644 --- a/main.cpp +++ b/main.cpp @@ -50,8 +50,7 @@ const char thisSlaveAddress[5] = {'R','x','A','A','A'}; int main(void) { digitalWrite(10, 10); - RF24 value(CE_PIN, CSN_PIN); - uart_init(); + uart_init(); DDRC &= ~(1<<0); // Input PORTC |= (1<<0); // Enable Internal Pull Up (Setting it to HIGH) @@ -63,7 +62,11 @@ int main(void) { PORTD |= _BV(DIRECTION); for(;;){ - + RF24 radio(CE_PIN, CSN_PIN); + radio.begin(); + radio.setDataRate(RF24_1MBPS); + + // uart_putstr("hello\n"); _delay_ms(400); PORTD |= _BV(PULL);