Revision 048ed7e1
ID | 048ed7e1dbde71a25f5c2a6633de8ea027828dd5 |
Added analog.c for line following and linear pot
Most of the line following was copy-pasted from Colony 3. Still unsure
about prescaler, which used to be 2 for some reason but is now 64.
forklift/code/Makefile | ||
---|---|---|
4 | 4 |
%.hex: %.elf |
5 | 5 |
avr-objcopy -j .text -j .data -O ihex $< $@ |
6 | 6 |
|
7 |
forklift.elf: forklift.c twi.c twi.h |
|
8 |
avr-gcc -mmcu=atmega168 -DF_CPU=8000000L forklift.c twi.c -o forklift.elf -Os |
|
7 |
forklift.elf: forklift.c analog.c analog.h twi.c twi.h
|
|
8 |
avr-gcc -mmcu=atmega168 -DF_CPU=8000000L forklift.c analog.c twi.c -o forklift.elf -Os
|
|
9 | 9 |
|
10 | 10 |
download: forklift.hex |
11 | 11 |
avrdude -c avrispmkII -p m328p forklift.hex |
Also available in: Unified diff