mitchellhansen 5 years ago
parent 70da8ebf22
commit f4c23b7573

@ -50,8 +50,7 @@ const char thisSlaveAddress[5] = {'R','x','A','A','A'};
int main(void) { int main(void) {
digitalWrite(10, 10); digitalWrite(10, 10);
RF24 value(CE_PIN, CSN_PIN); uart_init();
uart_init();
DDRC &= ~(1<<0); // Input DDRC &= ~(1<<0); // Input
PORTC |= (1<<0); // Enable Internal Pull Up (Setting it to HIGH) PORTC |= (1<<0); // Enable Internal Pull Up (Setting it to HIGH)
@ -63,6 +62,10 @@ int main(void) {
PORTD |= _BV(DIRECTION); PORTD |= _BV(DIRECTION);
for(;;){ for(;;){
RF24 radio(CE_PIN, CSN_PIN);
radio.begin();
radio.setDataRate(RF24_1MBPS);
// uart_putstr("hello\n"); // uart_putstr("hello\n");
_delay_ms(400); _delay_ms(400);

Loading…
Cancel
Save