#!/bin/sh

set -e

avrdude -B 100 -p m88 -c avrisp2 -P usb -U lfuse:w:0x62:m hfuse:w:0xDF:m efuse:w:0xF9:m
avrdude -B 20 -p m88 -c avrisp2 -P usb -U flash:w:lf1600-flash.bin.hex
avrdude -B 20 -p m88 -c avrisp2 -P usb -U eeprom:w:lf1600-eeprom.bin.hex
