Skip to content

Instantly share code, notes, and snippets.

View eduardocl's full-sized avatar

Eduardo eduardocl

View GitHub Profile
@BobBurns
BobBurns / debouncer.asm
Created November 20, 2014 00:27
AVR Assembly simple debouncer
;example program using debouncing
;from AVR Programming by Elliot Williams p.115
;
;compile with gavrasm debouncer.asm
;flash with avrdude -c avrisp -p m168 -P /dev/tty.usbmodem1411 -b 19200 -U flash:w:debouncer.hex
;
.def temp = r16
.device atmega168
;--- inits ---
.def b_pressed = r17
; Blinky test program for AVR ATTiny25/45/85
; Assembled with avra in Linux and tested on the ATTiny85
;
; Licensed similarly to the original blink program for the BB313
; Public Domain
;
; To experiment and build on this (drop tn45def.inc in the same folder):
; avra blinky45.asm
; avrdude -p attiny85 -c avrispmkii -P usb -U flash:w:blinky45.hex