Arduino sin IDE

De fabwiki
Ir a la navegación Ir a la búsqueda
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;
  }
}