Diferencia entre revisiones de «Arduino sin IDE»
Ir a la navegación
Ir a la búsqueda
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 8: | Línea 8: | ||
https://github.com/antonyak/arduino-uno-avr-toolchain | https://github.com/antonyak/arduino-uno-avr-toolchain | ||
<syntaxhighlight lang=c> | |||
#include <avr/io.h> | |||
#include <util/delay.h> | |||
int main (void){ | |||
DDRB = 0xFF; | |||
while(true){ | |||
_delay_ms(200); | |||
PORTB = 0xFF; | |||
_delay_ms(200); | |||
PORTB = 0x00; | |||
} | |||
} | |||
</syntaxhighlight> | |||
Revisión del 16:06 15 oct 2026
avra prog.asm
avrdude -p m328p -c arduino -P /dev/tty.usbserial-A5069RR4 -U flash:w:prog.hex:i -D
https://github.com/antonyak/arduino-uno-avr-toolchain
#include <avr/io.h>
#include <util/delay.h>
int main (void){
DDRB = 0xFF;
while(true){
_delay_ms(200);
PORTB = 0xFF;
_delay_ms(200);
PORTB = 0x00;
}
}