This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |