# Compile source code for "16Mhz external crystal oscillator, MPU6050 sensor" configuration.
avr-gcc -mmcu=atmega328 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Werror -Os -std=c99 -DHAVE_CLOCK=16 -DHAVE_POLOLU=0 -DHAVE_ACCELEROMETERS=1 -c main.c
avr-gcc -mmcu=atmega328 -Wl,-u,vfprintf -lprintf_flt main.o -lm -o main.elf
avr-objcopy -O ihex -R .eeprom main.elf main.hex
