Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "uart_new.h"
- void setup() {
- uart_init_new(103);
- DDRB = 0xff;
- }
- void loop() {
- uint16_t c;
- c = get_char();
- if (c & NO_DATA)
- {
- PORTB |= (1<<PB5);
- _delay_ms(500);
- PORTB &= ~(1<<PB5);
- _delay_ms(500);
- }
- else
- {
- put_char(c);
- }
- }
Add Comment
Please, Sign In to add comment