Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature currently requires accessing the site using the built-in Safari browser.
Yo no uso mucho winavr por al crear funciones no me reconoce las variables y salta a la siguiente linea.
Solamente lo realiza bien si declaro a las variables como volatile, ese tipo de variables generalmente se usa en interrupciones.
Yo no uso mucho winavr por al crear funciones no me reconoce las variables y salta a la siguiente linea.
Solamente lo realiza bien si declaro a las variables como volatile, ese tipo de variables generalmente se usa en interrupciones.
#include <avr/io.h>
void retardo(unsigned int a){
while(a--);
}
int main(void){
PORTB= 0;
DDRB= 0x0f;
while(1){
PORTB= 0;
retardo(5000);
PORTB= 15;
retardo(5000);
}
return 0;
}
Una curiosidad. ¿El C de PIC se parece al C de AVR?