Carte Romeo
De Wiki Arobose
(→Fonctions moteur) |
m (→Commande à distance) |
||
Ligne 208 : | Ligne 208 : | ||
USART_1_setup(void) | USART_1_setup(void) | ||
{ | { | ||
− | + | DDRD &= ~(1 << PD2); /* initialize pin PD2 (RX) as input pin */ | |
− | + | DDRD |= (1 << PD3); /* initialize pin PD3 (TX) as output pin */ | |
UBRR1 = 103; /* 9600 Baud at 16MHz */ | UBRR1 = 103; /* 9600 Baud at 16MHz */ |