Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ISR(USART_RX_vect) {
- static char ReceivedText[200];
- static uint8_t k = 0;
- if(UDR0 == '|') {
- kirjoitakysymys(ReceivedText);
- k = 0
- memset(ReceivedText, 0, sizeof(ReceivedText));
- }
- else ReceivedText[k] = UDR0;
- k++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement