diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e18e2d9 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +prepare: + mkdir -p build + +clean: prepare + rm -fr build/* + +compile: clean + avr-gcc -Og -g -mmcu=atmega168 -o build/main src/*.c + +build: compile + avr-objcopy -j .text -j .data -O ihex build/main build/main.hex + +flash: + avrdude -P usb -b 19200 -c avrispmkII -p m168 -U lfuse:w:0xee:m -U hfuse:w:0xdf:m -U efuse:w:0xf9:m -U flash:w:build/main.hex diff --git a/README.md b/README.md index 7e3fbff..656e2e8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,14 @@ # ErgoDox-EZ -ErgoDox EZ LED mod + +[ErgoDox EZ](https://ergodox-ez.com/) LED mod to convert your regular ErgoDox EZ into an ErgoDox EZ shine. + +## Firmware + +Once you've connected your Atmega168 you can compile the firmware and flash your microcontroller with the included makefile: + +``` +$ make build +$ make flash +``` + +The makefile is setup to use the AVR ISP MKII.