Skip to content

Instantly share code, notes, and snippets.

View funkfinger's full-sized avatar
💭
vibin'

Jay Wiggins funkfinger

💭
vibin'
View GitHub Profile
@funkfinger
funkfinger / Makefile
Created April 27, 2011 02:13
My AVR ATTiny85 Makefile
DEVICE = attiny85
CLOCK = 1000000
PROGRAMMER = -c usbtiny
OBJECTS = main.o
FUSES = -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m
# generated by http://www.engbedded.com/fusecalc/
AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)
before do
# remove and grab the file extension
request.path_info.sub! %r{\.([^\./]+)$}, ''
@format=$1 || 'html'
@charset=mime_type($1) || 'text/html'
content_type @charset, :charset => 'utf-8'
end