Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(void)
- {
- // LED indicator
- //config led
- DDRC |= _BV(DDC5);
- UART_init();
- nRF905_init();
- // Interrupts on
- sei();
- // Put into receive mode
- nRF905_receive();
- uint8_t mesaj[NRF905_MAX_PAYLOAD];
- UART_sendstring("start\r" , '\r');
- while(1)
- {
- if(nRF905_airwayBusy())
- PORTC |= _BV(PORTC5);
- else
- PORTC &= ~_BV(PORTC5);
- // Clear stuff
- nRF905_getData(mesaj, sizeof(mesaj));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement